class RSpec::Mocks::VerifyingProxy

def initialize(object, order_group, name, doubled_module, method_reference_class)

def initialize(object, order_group, name, doubled_module, method_reference_class)
  super(object, order_group, name)
  @object                 = object
  @doubled_module         = doubled_module
  @method_reference_class = method_reference_class
  # A custom method double is required to pass through a way to lookup
  # methods to determine their parameters. This is only relevant if the doubled
  # class is loaded.
  @method_doubles = Hash.new do |h, k|
    h[k] = VerifyingMethodDouble.new(@object, k, self, method_reference[k])
  end
end