Commit 9613f7e2 authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Stub feature flag for spec

parent 7fe14c42
......@@ -327,6 +327,10 @@ describe Ci::Build do
describe '#enqueue_scheduled' do
subject { build.enqueue_scheduled }
before do
stub_feature_flags(ci_enable_scheduled_build: true)
end
context 'when build is scheduled and the right time has not come yet' do
let(:build) { create(:ci_build, :scheduled, pipeline: pipeline) }
......
......@@ -7,6 +7,10 @@ describe Ci::RunScheduledBuildService do
subject { described_class.new(project, user).execute(build) }
before do
stub_feature_flags(ci_enable_scheduled_build: true)
end
context 'when user can update build' do
before do
project.add_developer(user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment