class RSpec::Mocks::VerifyingExistingMethodDouble
def self.for(object, method_name, proxy)
def self.for(object, method_name, proxy) if ClassNewMethodReference.applies_to?(method_name) { object } VerifyingExistingClassNewMethodDouble else self end.new(object, method_name, proxy) end