class RSpec::Mocks::VerifyingPartialDoubleProxy

@private

Public Class Methods

new(object, expectation_ordering) click to toggle source
Calls superclass method RSpec::Mocks::Proxy.new
# File lib/rspec/mocks/verifying_proxy.rb, line 91
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 102
def method_reference
  @method_doubles
end