Class: Spec::Mocks::MethodStub
- Inherits:
-
BaseExpectation
- Object
- BaseExpectation
- Spec::Mocks::MethodStub
- Defined in:
- lib/spec/mocks/message_expectation.rb
Instance Attribute Summary
Attributes inherited from BaseExpectation
Instance Method Summary collapse
-
#initialize(message, expectation_ordering, expected_from, sym, method_block) ⇒ MethodStub
constructor
A new instance of MethodStub.
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(, expectation_ordering, expected_from, sym, method_block) super(, expectation_ordering, expected_from, sym, method_block, 0) @expected_received_count = :any end |