lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-1.32.0 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-1.33.0
- old
+ new
@@ -30,11 +30,11 @@
# expect(run).to change { user.reload.name }
#
class ExpectChange < Cop
include ConfigurableEnforcedStyle
- MSG_BLOCK = 'Prefer `change(%<obj>s, :%<attr>s)`.'.freeze
- MSG_CALL = 'Prefer `change { %<obj>s.%<attr>s }`.'.freeze
+ MSG_BLOCK = 'Prefer `change(%<obj>s, :%<attr>s)`.'
+ MSG_CALL = 'Prefer `change { %<obj>s.%<attr>s }`.'
def_node_matcher :expect_change_with_arguments, <<-PATTERN
(send nil? :change ({const send} nil? $_) (sym $_))
PATTERN