# File lib/rubygems/test_utilities.rb, line 116
  def download_to_cache dependency
    found = Gem::SpecFetcher.fetcher.fetch dependency, true, true,
                                           dependency.prerelease?

    return if found.empty?

    spec, source_uri = found.first

    download spec, source_uri
  end