aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_resolver_installed_specification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_resolver_installed_specification.rb')
-rw-r--r--test/rubygems/test_gem_resolver_installed_specification.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_resolver_installed_specification.rb b/test/rubygems/test_gem_resolver_installed_specification.rb
new file mode 100644
index 0000000000..f9dda29a6c
--- /dev/null
+++ b/test/rubygems/test_gem_resolver_installed_specification.rb
@@ -0,0 +1,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
+