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

- old
+ new

@@ -97,10 +97,14 @@ def examples_with_only_context(node) shared_example(node) { yield if context?(node) && !examples?(node) } end def add_shared_item_offense(node, message) - add_offense(node.children.first, :expression, message) + add_offense( + node.children.first, + location: :expression, + message: message + ) end end end end end