method

download_to_cache

download_to_cache(dependency)
public

No documentation available.

# File lib/rubygems/test_utilities.rb, line 147
  def download_to_cache(dependency)
    found, _ = Gem::SpecFetcher.fetcher.spec_for_dependency dependency

    return if found.empty?

    spec, source = found.first

    download spec, source.uri.to_s
  end