Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-08-25 07:44:51 +0300
committerNick Thomas <nick@gitlab.com>2018-08-25 07:44:51 +0300
commit26ea5437f17ce2a6546fbfd644b93b7f18896783 (patch)
tree7f1ddd0846d9515a7bb1714711be88d4b633f01e /spec/support
parentee2aaa29dd483a237b91aa46e9000e085b912e1e (diff)
parent7b7969bf15894660411d8ea53f4fa5101c6571b4 (diff)
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.rb3
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 }