diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-18 05:11:55 +0000 |
commit | f20ad4889d5c7af44581373d25fd326ce796c4b3 (patch) | |
tree | b7bf99329ed8c29768f2502d3bd418e57be32268 /test/rubygems/test_gem_package.rb | |
parent | 513345607da396f33b862dc2a48135e8a14bad99 (diff) | |
download | ruby-f20ad4889d5c7af44581373d25fd326ce796c4b3.tar.gz |
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems
HEAD(2c6d256). It contains to update vendored Molinillo to 0.5.0.
https://github.com/rubygems/rubygems/pull/1638
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_package.rb')
-rw-r--r-- | test/rubygems/test_gem_package.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb index 2f8747bc97..9d47f0dea4 100644 --- a/test/rubygems/test_gem_package.rb +++ b/test/rubygems/test_gem_package.rb @@ -141,7 +141,9 @@ class TestGemPackage < Gem::Package::TarTestCase FileUtils.mkdir_p 'lib' open 'lib/code.rb', 'w' do |io| io.write '# lib/code.rb' end - File.symlink('lib/code.rb', 'lib/code_sym.rb') + + # NOTE: 'code.rb' is correct, because it's relative to lib/code_sym.rb + File.symlink('code.rb', 'lib/code_sym.rb') package = Gem::Package.new 'bogus.gem' package.spec = spec @@ -156,12 +158,16 @@ class TestGemPackage < Gem::Package::TarTestCase Gem::Package::TarReader.new tar do |tar_io| tar_io.each_entry do |entry| - (entry.symlink? ? symlinks : files) << entry.full_name + if entry.symlink? + symlinks << { entry.full_name => entry.header.linkname } + else + files << entry.full_name + end end end assert_equal %w[lib/code.rb], files - assert_equal %w[lib/code_sym.rb], symlinks + assert_equal [{'lib/code_sym.rb' => 'lib/code.rb'}], symlinks end def test_build |