lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.41.0 vs lib/rubocop/cop/rspec/message_spies.rb in rubocop-rspec-1.42.0

- old
+ new

@@ -46,11 +46,10 @@ def on_send(node) receive_message_matcher(node) do |receiver, message_matcher| return correct_style_detected if preferred_style?(message_matcher) add_offense( - message_matcher, - location: :selector, + message_matcher.loc.selector, message: error_message(receiver) ) { opposite_style_detected } end end