mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
20 lines
495 B
Ruby
20 lines
495 B
Ruby
|
require 'rubygems/test_case'
|
||
|
require 'rubygems/dependency_resolver'
|
||
|
|
||
|
class TestGemDependencyResolverInstalledSpecification < Gem::TestCase
|
||
|
|
||
|
def test_initialize
|
||
|
set = Gem::DependencyResolver::CurrentSet.new
|
||
|
|
||
|
source_spec = quick_spec 'a'
|
||
|
|
||
|
spec = Gem::DependencyResolver::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
|
||
|
|