lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/expect_change.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -67,10 +67,10 @@
corrector.replace(node, replacement)
end
end
end
- def on_block(node)
+ def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
return unless style == :method_call
expect_change_with_block(node) do |receiver, message|
msg = format(MSG_BLOCK, obj: receiver.source, attr: message)
add_offense(node, message: msg) do |corrector|