lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.42.0 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.43.0

- old
+ new

@@ -20,10 +20,10 @@ # before do # allow(MyClass).to receive(:new).and_return(my_instance) # allow(my_instance).to receive(:foo) # end # end - class AnyInstance < Cop + class AnyInstance < Base MSG = 'Avoid stubbing using `%<method>s`.' def_node_matcher :disallowed_stub, <<-PATTERN (send _ ${:any_instance :allow_any_instance_of :expect_any_instance_of} ...) PATTERN