Method: RuboCop::Cop::RSpec::ReturnFromStub#on_block

Defined in:
lib/rubocop/cop/rspec/return_from_stub.rb

#on_block(node) ⇒ Object

rubocop:disable InternalAffairs/NumblockHandler


62
63
64
65
66
67
# File 'lib/rubocop/cop/rspec/return_from_stub.rb', line 62

def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
  return unless style == :and_return
  return unless stub_with_block?(node)

  check_block_body(node)
end