diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-02 19:45:39 +0900 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-10-02 17:08:14 +0200 |
commit | 9613f7e2fb2d5b4190adff29107b1bca6993fd41 (patch) | |
tree | 713dbed85d18c9b0d58476f579f059faad5cc87c /spec/models/ci/build_spec.rb | |
parent | 7fe14c42a913c683bd6f7c4f8791fff63db3c499 (diff) | |
download | gitlab-ce-9613f7e2fb2d5b4190adff29107b1bca6993fd41.tar.gz |
Stub feature flag for spec
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r-- | spec/models/ci/build_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 83add15fab7..ffad82c7820 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -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) } |