Sha256: 6ef7c96d62331a28d13a88517d7006292808b6349cd8f0cf31bfe65098fc27a7

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

require 'mocha/mock'

module Mocha # :nodoc:
  # Extends #method_missing on Mocha::Mock to record Invocations.
  class Mock # :nodoc:
    alias_method :method_missing_without_invocation, :method_missing

    def method_missing(symbol, *arguments, &block)
      Mockery.instance.invocation(self, symbol, arguments)
      method_missing_without_invocation(symbol, *arguments, &block)
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
bourne-1.6.0 lib/bourne/mock.rb
bourne-1.5.0 lib/bourne/mock.rb
challah-1.0.0.beta3 vendor/bundle/gems/bourne-1.4.0/lib/bourne/mock.rb
challah-1.0.0.beta2 vendor/bundle/gems/bourne-1.4.0/lib/bourne/mock.rb
challah-1.0.0.beta vendor/bundle/gems/bourne-1.4.0/lib/bourne/mock.rb
bourne-1.4.0 lib/bourne/mock.rb