class RSpec::Mocks::Space

def proxy_for(object)

def proxy_for(object)
  print_out_of_example_deprecation if outside_example
  id = id_for(object)
  proxies.fetch(id) do
    proxies[id] = case object
                  when NilClass   then ProxyForNil.new
                  when TestDouble then object.__build_mock_proxy
                  else
                    Proxy.new(object)
                  end
  end
end