From 6c278c906867ddd58776ed4623a9d8ac1fa41ff6 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sat, 29 Oct 2022 15:10:48 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/support/helpers/stub_feature_flags.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3