summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-06-23 11:22:36 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-06-24 10:52:02 +0900
commit12a5fa408bd318f8fb242e86beb225f2dcae8df9 (patch)
treef132650f5999535da69ee998956f260007afd371 /test/rubygems/test_gem_specification.rb
parent333754ace8ae9bc5d2dfb4aee160fcfa0f38350d (diff)
Sync RubyGems & Bundler with upstream repo
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6054
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 8591957245..928fd571ed 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1068,7 +1068,15 @@ dependencies: []
end
def test_handles_private_null_type
- path = File.expand_path 'data/null-type.gemspec.rz', __dir__
+ path = File.expand_path 'data/pry-0.4.7.gemspec.rz', __dir__
+
+ data = Marshal.load Gem::Util.inflate(Gem.read_binary(path))
+
+ assert_instance_of Gem::Specification, data
+ end
+
+ def test_handles_dependencies_with_syck_requirements_bug
+ path = File.expand_path 'data/excon-0.7.7.gemspec.rz', __dir__
data = Marshal.load Gem::Util.inflate(Gem.read_binary(path))
@@ -3006,7 +3014,6 @@ Please report a bug if this causes problems.
@a1.homepage = 'https://rubygems.org'
assert_equal true, @a1.validate
-
end
end