summaryrefslogtreecommitdiff
path: root/rubocop
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-24 21:10:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-24 21:10:17 +0000
commitba0d8b409534f02c23bf2447fd32246926ba4392 (patch)
tree722b4f0f7be05189bfa5a0d06b20383b4680b5a1 /rubocop
parentfd247970cfe1e98276c780fbdcca026b7960e42a (diff)
downloadgitlab-ce-ba0d8b409534f02c23bf2447fd32246926ba4392.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r--rubocop/cop/rspec/missing_feature_category.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/rubocop/cop/rspec/missing_feature_category.rb b/rubocop/cop/rspec/missing_feature_category.rb
index 314250af5ee..0f517473982 100644
--- a/rubocop/cop/rspec/missing_feature_category.rb
+++ b/rubocop/cop/rspec/missing_feature_category.rb
@@ -36,7 +36,7 @@ module RuboCop
def on_top_level_example_group(node)
return if feature_category?(node)
- add_offense(node)
+ add_offense(node.children.first)
end
end
end