Class: Mocha::Mockery
- Inherits:
-
Object
- Object
- Mocha::Mockery
- Defined in:
- lib/bourne/mockery.rb
Overview
Used internally by Bourne extensions to Mocha when recording invocations of stubbed and mocked methods. You shouldn’t need to interact with this module through normal testing, but you can access the full list of invocations directly if necessary.
Instance Method Summary collapse
Instance Method Details
#invocation(mock, method_name, args) ⇒ Object
11 12 13 |
# File 'lib/bourne/mockery.rb', line 11 def invocation(mock, method_name, args) invocations << Invocation.new(mock, method_name, args) end |
#invocations ⇒ Object
15 16 17 |
# File 'lib/bourne/mockery.rb', line 15 def invocations @invocations ||= [] end |