# File lib/rubygems/test_case.rb, line 1099 def initialize(specs) @specs = specs end
# File lib/rubygems/test_case.rb, line 1103 def add spec @specs << spec end
# File lib/rubygems/test_case.rb, line 1113 def find_all(dep) @specs.find_all { |s| dep.matches_spec? s } end
# File lib/rubygems/test_case.rb, line 1107 def find_spec(dep) @specs.reverse_each do |s| return s if dep.matches_spec? s end end
# File lib/rubygems/test_case.rb, line 1117 def load_spec name, ver, platform, source dep = Gem::Dependency.new name, ver spec = find_spec dep Gem::Specification.new spec.name, spec.version do |s| s.platform = spec.platform end end
# File lib/rubygems/test_case.rb, line 1126 def prefetch(reqs) end