summaryrefslogtreecommitdiff
path: root/spec/support/helpers/stub_feature_flags.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-24 18:10:18 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-24 18:10:18 +0000
commit84cacdae74db0de90cf88ceef2191f399e9659b2 (patch)
tree679f359bde918dd341b70937a9cf5e115851ff89 /spec/support/helpers/stub_feature_flags.rb
parentcb9b55e662d4164d913ef7031adc135d3ea4d9f0 (diff)
downloadgitlab-ce-84cacdae74db0de90cf88ceef2191f399e9659b2.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/helpers/stub_feature_flags.rb')
-rw-r--r--spec/support/helpers/stub_feature_flags.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_feature_flags.rb b/spec/support/helpers/stub_feature_flags.rb
index f1654e55b7e..31ae9570ec7 100644
--- a/spec/support/helpers/stub_feature_flags.rb
+++ b/spec/support/helpers/stub_feature_flags.rb
@@ -37,6 +37,8 @@ module StubFeatureFlags
# Enable `ci_live_trace` feature flag only on the specified projects.
def stub_feature_flags(features)
features.each do |feature_name, actors|
+ warn "Invalid Feature Flag #{feature_name} stubbed" unless Feature::Definition.get(feature_name)
+
# Remove feature flag overwrite
feature = Feature.get(feature_name) # rubocop:disable Gitlab/AvoidFeatureGet
feature.remove