module RSpec::Mocks::ObjectVerifyingDoubleMethods

def __build_mock_proxy(order_group)

def __build_mock_proxy(order_group)
  VerifyingProxy.new(self, order_group, @name,
    @doubled_module,
    ObjectMethodReference
  )
end

def as_stubbed_const(options = {})

def as_stubbed_const(options = {})
  ConstantMutator.stub(@doubled_module.const_to_replace, self, options)
  self
end

def initialize(doubled_module, *args)

def initialize(doubled_module, *args)
  @doubled_module = doubled_module
  super(doubled_module.description, *args)
end