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 ...@@ -327,6 +327,10 @@ describe Ci::Build do
describe '#enqueue_scheduled' do describe '#enqueue_scheduled' do
subject { build.enqueue_scheduled } 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 context 'when build is scheduled and the right time has not come yet' do
let(:build) { create(:ci_build, :scheduled, pipeline: pipeline) } let(:build) { create(:ci_build, :scheduled, pipeline: pipeline) }
......
...@@ -7,6 +7,10 @@ describe Ci::RunScheduledBuildService do ...@@ -7,6 +7,10 @@ describe Ci::RunScheduledBuildService do
subject { described_class.new(project, user).execute(build) } 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 context 'when user can update build' do
before do before do
project.add_developer(user) 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