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>2023-11-10 15:09:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-10 15:09:27 +0300
commit43d1fef975a24dcaac3ad9bbf20ae9839f5ec9ed (patch)
tree7b68a14e21158abeffebd40f32ca840aa55e6d77 /spec/rubocop
parent19a36e759b6ba949c5e37e6e40e9f1a230106aa0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/rubocop')
-rw-r--r--spec/rubocop/cop/gitlab/mark_used_feature_flags_spec.rb34
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/rubocop/cop/gitlab/mark_used_feature_flags_spec.rb b/spec/rubocop/cop/gitlab/mark_used_feature_flags_spec.rb
index 4b7ea6b72e5..8d80a554a2a 100644
--- a/spec/rubocop/cop/gitlab/mark_used_feature_flags_spec.rb
+++ b/spec/rubocop/cop/gitlab/mark_used_feature_flags_spec.rb
@@ -146,40 +146,6 @@ RSpec.describe RuboCop::Cop::Gitlab::MarkUsedFeatureFlags do
end
end
- %w[
- use_rugged?
- ].each do |feature_flag_method|
- context "#{feature_flag_method} method" do
- context 'a string feature flag' do
- include_examples 'sets flag as used', %|#{feature_flag_method}(arg, "baz")|, 'baz'
- end
-
- context 'a symbol feature flag' do
- include_examples 'sets flag as used', %|#{feature_flag_method}(arg, :baz)|, 'baz'
- end
-
- context 'an interpolated string feature flag with a string prefix' do
- include_examples 'sets flag as used', %|#{feature_flag_method}(arg, "foo_\#{bar}")|, %w[foo_hello foo_world]
- end
-
- context 'an interpolated symbol feature flag with a string prefix' do
- include_examples 'sets flag as used', %|#{feature_flag_method}(arg, :"foo_\#{bar}")|, %w[foo_hello foo_world]
- end
-
- context 'an interpolated string feature flag with a string prefix and suffix' do
- include_examples 'does not set any flags as used', %|#{feature_flag_method}(arg, :"foo_\#{bar}_baz")|
- end
-
- context 'a dynamic string feature flag as a variable' do
- include_examples 'does not set any flags as used', %|#{feature_flag_method}(a_variable, an_arg)|
- end
-
- context 'an integer feature flag' do
- include_examples 'does not set any flags as used', %|#{feature_flag_method}(arg, 123)|
- end
- end
- end
-
describe 'self.limit_feature_flag = :foo' do
include_examples 'sets flag as used', 'self.limit_feature_flag = :foo', 'foo'
end