lib/rubocop/cop/rspec/message_expectation.rb in rubocop-rspec-1.41.0 vs lib/rubocop/cop/rspec/message_expectation.rb in rubocop-rspec-1.42.0
- old
+ new
@@ -40,10 +40,10 @@
def on_send(node)
message_expectation(node) do |match|
return correct_style_detected if preferred_style?(match)
message = format(MSG, style: style)
- add_offense(match, location: :selector, message: message) do
+ add_offense(match.loc.selector, message: message) do
opposite_style_detected
end
end
end