lib/rubocop/cop/rspec/change_by_zero.rb in rubocop-rspec-2.25.0 vs lib/rubocop/cop/rspec/change_by_zero.rb in rubocop-rspec-2.26.0

- old
+ new

@@ -64,27 +64,27 @@ 'over `%<method>s.by(0)`.' CHANGE_METHODS = Set[:change, :a_block_changing, :changing].freeze RESTRICT_ON_SEND = CHANGE_METHODS.freeze # @!method expect_change_with_arguments(node) - def_node_matcher :expect_change_with_arguments, <<-PATTERN + def_node_matcher :expect_change_with_arguments, <<~PATTERN (send $(send nil? CHANGE_METHODS ...) :by (int 0)) PATTERN # @!method expect_change_with_block(node) - def_node_matcher :expect_change_with_block, <<-PATTERN + def_node_matcher :expect_change_with_block, <<~PATTERN (send (block $(send nil? CHANGE_METHODS) (args) (send (...) _)) :by (int 0)) PATTERN # @!method change_nodes(node) - def_node_search :change_nodes, <<-PATTERN + def_node_search :change_nodes, <<~PATTERN $(send nil? CHANGE_METHODS ...) PATTERN def on_send(node) expect_change_with_arguments(node.parent) do |change|