aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_resolver_installed_specification.rb
blob: f9dda29a6cafbf0c8ef70656d1cfec8123bf14c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rubygems/test_case'

class TestGemResolverInstalledSpecification < Gem::TestCase

  def test_initialize
    set     = Gem::Resolver::CurrentSet.new

    source_spec = util_spec 'a'

    spec = Gem::Resolver::InstalledSpecification.new set, source_spec

    assert_equal 'a',                 spec.name
    assert_equal Gem::Version.new(2), spec.version
    assert_equal Gem::Platform::RUBY, spec.platform
  end

end