# File lib/rubygems/commands/test_command.rb, line 88
  def find_rakefile(path, spec)
    rakefile = DEFAULT_RAKEFILES.
      map  { |x| File.join(path, x) }.
      find { |x| File.exist?(x) }

    unless(File.exist?(rakefile) rescue nil)
      alert_error "Couldn't find rakefile -- this gem cannot be tested. Aborting." 
      raise Gem::RakeNotFoundError, "Couldn't find rakefile, gem #{spec.name} (#{spec.version}) cannot be tested."
    end
  end