lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.2.0 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.3.0

- old
+ new

@@ -35,13 +35,15 @@ MSG_BLOCK = 'Prefer `change(%<obj>s, :%<attr>s)`.' MSG_CALL = 'Prefer `change { %<obj>s.%<attr>s }`.' RESTRICT_ON_SEND = %i[change].freeze + # @!method expect_change_with_arguments(node) def_node_matcher :expect_change_with_arguments, <<-PATTERN (send nil? :change ({const send} nil? $_) (sym $_)) PATTERN + # @!method expect_change_with_block(node) def_node_matcher :expect_change_with_block, <<-PATTERN (block (send nil? :change) (args) (send ({const send} nil? $_) $_)