lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.15.1 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.16.0
- old
+ new
@@ -19,10 +19,10 @@
# allow(MyClass).to receive(:new).and_return(my_instance)
# allow(my_instance).to receive(:foo)
# end
# end
class AnyInstance < Cop
- MSG = 'Avoid stubbing using `%{method}`.'.freeze
+ MSG = 'Avoid stubbing using `%<method>s`.'.freeze
def_node_matcher :disallowed_stub, <<-PATTERN
(send _ ${:any_instance :allow_any_instance_of :expect_any_instance_of} ...)
PATTERN