Sha256: 2167aa561909f39bbb25439c82ea99a9a59dc1434242cab80d34b3e6db47eb89
Contents?: true
Size: 668 Bytes
Versions: 12
Compression:
Stored size: 668 Bytes
Contents
require 'rubygems/test_case' require 'rubygems/dependency_resolver' class TestGemDependencyResolverInstallerSet < Gem::TestCase def test_load_spec @fetcher = Gem::FakeFetcher.new Gem::RemoteFetcher.fetcher = @fetcher a_2 = quick_spec 'a', 2 a_2_p = quick_spec 'a', 2 do |s| s.platform = Gem::Platform.local end Gem::Specification.add_specs a_2, a_2_p util_setup_spec_fetcher a_2, a_2_p source = Gem::Source.new @gem_repo version = v 2 set = Gem::DependencyResolver::InstallerSet.new :remote spec = set.load_spec 'a', version, Gem::Platform.local, source assert_equal a_2_p.full_name, spec.full_name end end
Version data entries
12 entries across 12 versions & 1 rubygems