lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.18.0 vs lib/rubocop/cop/rspec/nested_groups.rb in rubocop-rspec-1.19.0

- old
+ new

@@ -97,10 +97,14 @@ def_node_search :find_contexts, ExampleGroups::ALL.block_pattern def on_top_level_describe(node, _) find_nested_contexts(node.parent) do |context, nesting| - add_offense(context.children.first, :expression, message(nesting)) + add_offense( + context.children.first, + location: :expression, + message: message(nesting) + ) end end private