lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.1.0 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.2.0
- old
+ new
@@ -33,9 +33,10 @@
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG_BLOCK = 'Prefer `change(%<obj>s, :%<attr>s)`.'
MSG_CALL = 'Prefer `change { %<obj>s.%<attr>s }`.'
+ RESTRICT_ON_SEND = %i[change].freeze
def_node_matcher :expect_change_with_arguments, <<-PATTERN
(send nil? :change ({const send} nil? $_) (sym $_))
PATTERN