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

#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_invocationObject

:nodoc:



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

alias_method :method_missing_without_invocation, :method_missing