lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-1.43.0
- old
+ new
@@ -27,10 +27,10 @@
# expect { run }.to change(foo, :baz)
# # also good when there are arguments or chained method calls
# expect { run }.to change { Foo.bar(:count) }
# expect { run }.to change { user.reload.name }
#
- class ExpectChange < Cop
+ class ExpectChange < Base
extend AutoCorrector
include ConfigurableEnforcedStyle
MSG_BLOCK = 'Prefer `change(%<obj>s, :%<attr>s)`.'
MSG_CALL = 'Prefer `change { %<obj>s.%<attr>s }`.'