diff options
author | Nick Thomas <nick@gitlab.com> | 2018-08-25 04:44:51 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-25 04:44:51 +0000 |
commit | 26ea5437f17ce2a6546fbfd644b93b7f18896783 (patch) | |
tree | 7f1ddd0846d9515a7bb1714711be88d4b633f01e /spec/support | |
parent | ee2aaa29dd483a237b91aa46e9000e085b912e1e (diff) | |
parent | 7b7969bf15894660411d8ea53f4fa5101c6571b4 (diff) | |
download | gitlab-ce-26ea5437f17ce2a6546fbfd644b93b7f18896783.tar.gz |
Merge branch '50345-hashed-storage-feature-flag' into 'master'
Feature flag to disable Hashed Storage migration when renaming a repository
Closes #50345
See merge request gitlab-org/gitlab-ce!21291
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/helpers/stub_feature_flags.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_feature_flags.rb b/spec/support/helpers/stub_feature_flags.rb index b96338bf548..c54a871b157 100644 --- a/spec/support/helpers/stub_feature_flags.rb +++ b/spec/support/helpers/stub_feature_flags.rb @@ -1,4 +1,7 @@ module StubFeatureFlags + # Stub Feature flags with `flag_name: true/false` + # + # @param [Hash] features where key is feature name and value is boolean whether enabled or not def stub_feature_flags(features) features.each do |feature_name, enabled| allow(Feature).to receive(:enabled?).with(feature_name) { enabled } |