Class: RSpec::Bash::Mocks::Matchers::Receive

Inherits:
BaseMatcher
  • Object
show all
Defined in:
lib/rspec/bash/mocks/matchers/receive.rb

Instance Attribute Summary

Attributes inherited from BaseMatcher

#double

Instance Method Summary collapse

Methods inherited from BaseMatcher

#and_always_return, #and_always_yield, #and_call_original, #and_return, #and_yield, #at_least, #at_most, #exactly, #matches?, #name, #never, #once, #setup_allowance, #thrice, #times, #twice, #with_args

Constructor Details

#initialize(routine) ⇒ Receive

Returns a new instance of Receive.



10
11
12
13
14
15
# File 'lib/rspec/bash/mocks/matchers/receive.rb', line 10

def initialize(routine)
  @double = Doubles::FunctionDouble.new(routine)
  @display_name = "receive"

  super()
end