Class: Mocha::Mock
- Inherits:
-
Object
- Object
- Mocha::Mock
- Defined in:
- lib/bourne/mock.rb
Overview
Extends #method_missing on Mocha::Mock to record Invocations.
Instance Method Summary collapse
- #method_missing(symbol, *arguments, &block) ⇒ Object
-
#method_missing_without_invocation ⇒ Object
:nodoc:.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *arguments, &block) ⇒ Object
8 9 10 11 |
# File 'lib/bourne/mock.rb', line 8 def method_missing(symbol, *arguments, &block) Mockery.instance.invocation(self, symbol, arguments) method_missing_without_invocation(symbol, *arguments, &block) end |
Instance Method Details
#method_missing_without_invocation ⇒ Object
:nodoc:
6 |
# File 'lib/bourne/mock.rb', line 6 alias_method :method_missing_without_invocation, :method_missing |