lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.9.1 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.10.0
- old
+ new
@@ -31,10 +31,10 @@
def on_send(node)
_receiver, method_name, *_args = *node
return unless ANY_INSTANCE_METHODS.include?(method_name)
- add_offense(node, :expression, MESSAGE % { method: method_name })
+ add_offense(node, :expression, format(MESSAGE, method: method_name))
end
end
end
end
end