lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-2.0.0.pre vs lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-2.0.0

- old
+ new

@@ -20,11 +20,11 @@ # allow(bar).to receive(:qux?).and_return(true) # end # end # class SubjectStub < Base - include RuboCop::RSpec::TopLevelGroup + include TopLevelGroup MSG = 'Do not stub methods of the object under test.' # @!method subject(node) # Find a named or unnamed subject definition @@ -64,10 +64,10 @@ (send { (send nil? { :expect :allow } (send nil? {% :subject})) (send nil? :is_expected) } - #{Runners::ALL.node_pattern_union} + #Runners.all #message_expectation_matcher? ) PATTERN def_node_search :message_expectation_matcher?, <<-PATTERN