lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -20,9 +20,10 @@ # before do # allow(MyClass).to receive(:new).and_return(my_instance) # allow(my_instance).to receive(:foo) # end # end + # class AnyInstance < Base MSG = 'Avoid stubbing using `%<method>s`.' RESTRICT_ON_SEND = %i[ any_instance allow_any_instance_of