diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-10-06 19:27:34 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-10 23:12:21 +0900 |
commit | 05e3d7b9674c1008af85ad9f177d18ebf8d699b1 (patch) | |
tree | 117619a09b3aa1d49b62c750f1de12486535dd8e | |
parent | 48e4dea4cdeeb6e1ba79287399b0b0288df2d720 (diff) |
[ruby/rubygems] Explicit check file not created outside of destination
https://github.com/rubygems/rubygems/commit/1e363dbbcb
-rw-r--r-- | test/rubygems/test_gem_package.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_package.rb b/test/rubygems/test_gem_package.rb index 4e588d02e4..5dabcfd47c 100644 --- a/test/rubygems/test_gem_package.rb +++ b/test/rubygems/test_gem_package.rb @@ -584,6 +584,8 @@ class TestGemPackage < Gem::Package::TarTestCase assert_equal("installing into parent path lib/link/outside.txt of " + "#{destination_subdir} is not allowed", e.message) + + assert_path_not_exist File.join(@destination, "outside.txt") end def test_extract_symlink_parent_doesnt_delete_user_dir |