lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.8.0 vs lib/rubocop/cop/rspec/any_instance.rb in rubocop-rspec-1.9.0
- old
+ new
@@ -19,11 +19,9 @@
# allow(MyClass).to receive(:new).and_return(my_instance)
# allow(my_instance).to receive(:foo)
# end
# end
class AnyInstance < Cop
- include RuboCop::RSpec::SpecOnly
-
MESSAGE = 'Avoid stubbing using `%{method}`'.freeze
ANY_INSTANCE_METHODS = [
:any_instance,
:allow_any_instance_of,