Class: Spec::Mocks::MethodStub

Inherits:
BaseExpectation show all
Defined in:
lib/spec/mocks/message_expectation.rb

Instance Attribute Summary

Attributes inherited from BaseExpectation

#sym

Instance Method Summary collapse

Methods inherited from BaseExpectation

#and_raise, #and_return, #and_throw, #and_yield, #expected_args, #invoke, #matches

Constructor Details

#initialize(message, expectation_ordering, expected_from, sym, method_block) ⇒ MethodStub

Returns a new instance of MethodStub.



236
237
238
239
# File 'lib/spec/mocks/message_expectation.rb', line 236

def initialize(message, expectation_ordering, expected_from, sym, method_block)
  super(message, expectation_ordering, expected_from, sym, method_block, 0)
  @expected_received_count = :any
end