lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.11.0 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.11.1

- old
+ new

@@ -45,10 +45,16 @@ # @!method expect_change_with_block(node) def_node_matcher :expect_change_with_block, <<-PATTERN (block (send nil? :change) (args) - (send $_ $_) + (send + ${ + (send nil? _) # change { user.name } + const # change { User.count } + } + $_ + ) ) PATTERN def on_send(node) return unless style == :block