Class: Mocha::Mockery

Inherits:
Object
  • Object
show all
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

- (Object) invocation(mock, method_name, args)



11
12
13
# File 'lib/bourne/mockery.rb', line 11

def invocation(mock, method_name, args)
  invocations << Invocation.new(mock, method_name, args)
end

- (Object) invocations



15
16
17
# File 'lib/bourne/mockery.rb', line 15

def invocations
  @invocations ||= []
end