lib/rubocop/cop/rspec/receive_messages.rb in rubocop-rspec-2.23.2 vs lib/rubocop/cop/rspec/receive_messages.rb in rubocop-rspec-2.24.0

- old
+ new

@@ -122,10 +122,10 @@ end end def register_offense(item, repeated_lines, args) add_offense(item, message: message(repeated_lines)) do |corrector| - if item.loc.line < repeated_lines.min + if item.loc.line > repeated_lines.max replace_to_receive_messages(corrector, item, args) else corrector.remove(item_range_by_whole_lines(item)) end end