lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.27.0 vs lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.28.0
- old
+ new
@@ -102,10 +102,10 @@
def on_top_level_describe(node, _args)
find_nested_contexts(node.parent) do |context, nesting|
self.max = nesting
add_offense(
- context.children.first,
+ context.send_node,
location: :expression,
message: message(nesting)
)
end
end