Class/Module Index [+]

Quicksearch

RSpec::Mocks::VerifyingPartialDoubleProxy

@private

Public Class Methods

new(object, expectation_ordering) click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 89
def initialize(object, expectation_ordering)
  super(object, expectation_ordering)
  @doubled_module = DirectObjectReference.new(object)

  # A custom method double is required to pass through a way to lookup
  # methods to determine their parameters.
  @method_doubles = Hash.new do |h, k|
    h[k] = VerifyingExistingMethodDouble.new(object, k, self)
  end
end

Public Instance Methods

method_reference() click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 100
def method_reference
  @method_doubles
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.