Class: Mocha::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/bourne/mock.rb

Overview

Extends #method_missing on Mocha::Mock to record Invocations.

Instance Method Summary (collapse)

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

- (Object) method_missing(symbol, *arguments, &block)



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

- (Object) method_missing_without_invocation

:nodoc:



6
# File 'lib/bourne/mock.rb', line 6

alias_method :method_missing_without_invocation, :method_missing