lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/subject_stub.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -9,11 +9,11 @@ # # Checks nested subject stubs for innermost subject definition # when subject is also defined in parent example groups. # # @see https://robots.thoughtbot.com/don-t-stub-the-system-under-test - # @see https://samphippen.com/introducing-rspec-smells-and-where-to-find-them#smell-1-stubject + # @see https://penelope.zone/2015/12/27/introducing-rspec-smells-and-where-to-find-them.html#smell-1-stubjec # @see https://github.com/rubocop-hq/rspec-style-guide#dont-stub-subject # # @example # # bad # describe Article do @@ -70,10 +70,10 @@ # # @yield [Symbol] subject name def_node_matcher :subject?, <<-PATTERN (block (send nil? - {:subject (sym $_) | $:subject} + { #Subjects.all (sym $_) | $#Subjects.all } ) args ...) PATTERN # @!method let?(node) # Find a memoized helper