diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-08-13 11:13:25 +0100 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-08-13 11:13:25 +0100 |
commit | dc773777c449092269ea16d501474b23ae1d9a2f (patch) | |
tree | 326bf0a3d45d0411951b13ef4067ddb51adedfec | |
parent | 6cfe3e71d497e31d675cc7ecb5a5cb572d77d8c9 (diff) | |
download | gitlab-ce-dc773777c449092269ea16d501474b23ae1d9a2f.tar.gz |
Disable force_autodevops_on_by_default feature by default in specs
-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 |