summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_package.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_package.rb')
-rw-r--r--test/rubygems/test_gem_package.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb
index e07304e9a5..f2f712ebe0 100644
--- a/test/rubygems/test_gem_package.rb
+++ b/test/rubygems/test_gem_package.rb
@@ -1093,6 +1093,11 @@ class TestGemPackage < Gem::Package::TarTestCase
assert_equal @spec, package.spec
end
+ def test_gem_attr
+ package = Gem::Package.new(@gem)
+ assert_equal(package.gem, @gem)
+ end
+
def test_spec_from_io
# This functionality is used by rubygems.org to extract spec data from an
# uploaded gem before it is written to storage.