class RSpec::Mocks::VerifyingPartialDoubleProxy
@private
def initialize(object, expectation_ordering)
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.for(object, k, self) end RSpec::Mocks.configuration.verifying_double_callbacks.each do |block| block.call @doubled_module end end
def method_reference
def method_reference @method_doubles end