diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-08-16 13:24:25 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-08-16 13:24:25 +0000 |
commit | 555cdadee69cb65768cd3655830f980194e9e607 (patch) | |
tree | bd9740d8b98461d417e7ee87a0d5ade423279304 /spec/spec_helper.rb | |
parent | ce18246c24040444646884a6a13e472ae83f74ee (diff) | |
download | gitlab-ce-555cdadee69cb65768cd3655830f980194e9e607.tar.gz |
Resolve "Enable Auto DevOps instance-wide on GitLab.com"
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bd564cc60a6..f4441a6b700 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -111,6 +111,13 @@ RSpec.configure do |config| config.before(:example) do # Enable all features by default for testing allow(Feature).to receive(:enabled?) { true } + + # The following can be removed when we remove the staged rollout strategy + # and we can just enable it using instance wide settings + # (ie. ApplicationSetting#auto_devops_enabled) + allow(Feature).to receive(:enabled?) + .with(:force_autodevops_on_by_default, anything) + .and_return(false) end config.before(:example, :request_store) do |