I find this hard to read. I'd either indent the lines below so they are aligned with the `if` or make it a one-liner:

`mock_proxies[object.object_id] = TestDouble === object ? object.__build_mock_proxy : Proxy.new(object)`