class RSpec::Mocks::PartialMockProxy

def method_handle_for(message)

def method_handle_for(message)
  if any_instance_class_recorder_observing_method?(@object.class, message)
    message = ::RSpec::Mocks.
      any_instance_recorder_for(@object.class).
      build_alias_method_name(message)
  end
  ::RSpec::Mocks.method_handle_for(@object, message)
rescue NameError
  nil
end