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

Version Path
rubygems-update-2.1.11 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.10 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.9 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.8 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.7 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.6 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.5 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.4 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.3 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.2 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.1 test/rubygems/test_gem_dependency_resolver_installer_set.rb
rubygems-update-2.1.0 test/rubygems/test_gem_dependency_resolver_installer_set.rb