diff options
Diffstat (limited to 'spec/rubocop/cop/gitlab/feature_available_usage_spec.rb')
-rw-r--r-- | spec/rubocop/cop/gitlab/feature_available_usage_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/rubocop/cop/gitlab/feature_available_usage_spec.rb b/spec/rubocop/cop/gitlab/feature_available_usage_spec.rb index b15c298099d..184f2c3ee92 100644 --- a/spec/rubocop/cop/gitlab/feature_available_usage_spec.rb +++ b/spec/rubocop/cop/gitlab/feature_available_usage_spec.rb @@ -16,6 +16,10 @@ RSpec.describe RuboCop::Cop::Gitlab::FeatureAvailableUsage do expect_no_offenses('License.feature_available?(:push_rules)') end + it 'does not flag the use of Gitlab::Saas.feature_available?' do + expect_no_offenses('Gitlab::Saas.feature_available?("some/feature")') + end + it 'flags the use with a dynamic feature as nil' do expect_offense(<<~SOURCE) feature_available?(nil) |