Method: RuboCop::Cop::RSpec::MissingExpectationTargetMethod#on_send
- Defined in:
- lib/rubocop/cop/rspec/missing_expectation_target_method.rb
#on_send(node) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/rubocop/cop/rspec/missing_expectation_target_method.rb', line 44 def on_send(node) node = node.parent if node.parent&.block_type? expectation_without_runner?(node.parent) do add_offense(node.parent.loc.selector) end end |