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

- old
+ new

@@ -19,11 +19,11 @@ # before do # allow(bar).to receive(:qux?).and_return(true) # end # end # - class SubjectStub < Cop + class SubjectStub < Base include RuboCop::RSpec::TopLevelGroup MSG = 'Do not stub methods of the object under test.' # @!method subject(node) @@ -37,10 +37,10 @@ # @example named subject # subject(parse('subject(:thing) { foo }').ast) do |name| # name # => :thing # end # - # @param node [RuboCop::Node] + # @param node [RuboCop::AST::Node] # # @yield [Symbol] subject name def_node_matcher :subject, <<-PATTERN { (block (send nil? :subject (sym $_)) args ...)