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

- old
+ new

@@ -15,10 +15,10 @@ MSG = 'Avoid stubbing using `%<method>s`.'.freeze def_node_matcher :message_chain, Matchers::MESSAGE_CHAIN.send_pattern def on_send(node) - message_chain(node) { add_offense(node, :selector) } + message_chain(node) { add_offense(node, location: :selector) } end def message(node) format(MSG, method: node.method_name) end