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
  elsif Mocks.configuration.temporarily_suppress_partial_double_verification
    MethodDouble
  else
    self
  end.new(object, method_name, proxy)
end