Class: Mocha::Expectation
- Inherits:
-
Object
- Object
- Mocha::Expectation
- Defined in:
- lib/bourne/expectation.rb
Overview
Extends Mocha::Expectation to record the full arguments and count whenver a stubbed or mocked method is invoked.
Instance Attribute Summary collapse
-
#invocation_count ⇒ Object
:nodoc:.
Instance Method Summary collapse
- #invoke_with_args(args, &block) ⇒ Object (also: #invoke)
Instance Attribute Details
#invocation_count ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/bourne/expectation.rb', line 7 def invocation_count @invocation_count end |
Instance Method Details
#invoke_with_args(args, &block) ⇒ Object Also known as: invoke
9 10 11 12 |
# File 'lib/bourne/expectation.rb', line 9 def invoke_with_args(args, &block) Mockery.instance.invocation(@mock, method_name, args) invoke_without_args(&block) end |