lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.8.0 vs lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-1.9.0

- old
+ new

@@ -16,13 +16,10 @@ # allow(bar).to receive(:qux?).and_return(true) # end # end # class SubjectStub < Cop - include RuboCop::RSpec::SpecOnly, - RuboCop::RSpec::TopLevelDescribe, - RuboCop::RSpec::Language, - RuboCop::RSpec::Language::NodePattern + include RuboCop::RSpec::TopLevelDescribe MSG = 'Do not stub your test subject.'.freeze # @!method subject(node) # Find a named or unnamed subject definition