summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-08-13 11:13:25 +0100
committerDylan Griffith <dyl.griffith@gmail.com>2018-08-13 11:13:25 +0100
commitdc773777c449092269ea16d501474b23ae1d9a2f (patch)
tree326bf0a3d45d0411951b13ef4067ddb51adedfec
parent6cfe3e71d497e31d675cc7ecb5a5cb572d77d8c9 (diff)
downloadgitlab-ce-dc773777c449092269ea16d501474b23ae1d9a2f.tar.gz
Disable force_autodevops_on_by_default feature by default in specs
-rw-r--r--spec/spec_helper.rb7
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