Method: RuboCop::Cop::RSpec::RepeatedSubjectCall#subject?
- Defined in:
- lib/rubocop/cop/rspec/repeated_subject_call.rb
permalink #subject?(node) {|Symbol| ... } ⇒ Object
Find a named or unnamed subject definition
53 54 55 56 57 58 |
# File 'lib/rubocop/cop/rspec/repeated_subject_call.rb', line 53 def_node_matcher :subject?, <<-PATTERN (block (send nil? { #Subjects.all (sym $_) | $#Subjects.all } ) args ...) PATTERN |