add_to_fetcher(spec, path=nil, repo=@gem_repo)
public
Add spec to +@fetcher+
serving the data in the file path. repo indicates which
repo to make spec appear to
be in.
# File lib/rubygems/test_case.rb, line 1031
def add_to_fetcher(spec, path=nil, repo=@gem_repo)
path ||= spec.cache_file
@fetcher.data["#{@gem_repo}gems/#{spec.file_name}"] = read_binary(path)
end