class RSpec::Mocks::Space

def proxy_not_found_for(id, object)

def proxy_not_found_for(id, object)
  proxies[id] = case object
                when NilClass   then ProxyForNil.new(@expectation_ordering)
                when TestDouble then object.__build_mock_proxy_unless_expired(@expectation_ordering)
                when Class
                  class_proxy_with_callback_verification_strategy(object, CallbackInvocationStrategy.new)
                else
                  if RSpec::Mocks.configuration.verify_partial_doubles?
                    VerifyingPartialDoubleProxy.new(object, @expectation_ordering)
                  else
                    PartialDoubleProxy.new(object, @expectation_ordering)
                  end
                end
end