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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-29 18:10:48 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-29 18:10:48 +0300
commit6c278c906867ddd58776ed4623a9d8ac1fa41ff6 (patch)
tree4f112e5e30e75db3972cc6847791771ef63b1365
parentbee7fbe95808efaddb348c8349f6d2504166c55a (diff)
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--spec/support/helpers/stub_feature_flags.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/helpers/stub_feature_flags.rb b/spec/support/helpers/stub_feature_flags.rb
index 31ae9570ec7..e301e29afc2 100644
--- a/spec/support/helpers/stub_feature_flags.rb
+++ b/spec/support/helpers/stub_feature_flags.rb
@@ -37,7 +37,9 @@ 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)
+ unless Feature::Definition.get(feature_name)
+ ActiveSupport::Deprecation.warn "Invalid Feature Flag #{feature_name} stubbed"
+ end
# Remove feature flag overwrite
feature = Feature.get(feature_name) # rubocop:disable Gitlab/AvoidFeatureGet