1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rubygems] Explicit check file not created outside of destination

https://github.com/rubygems/rubygems/commit/1e363dbbcb
This commit is contained in:
David Rodríguez 2021-10-06 19:27:34 +02:00 committed by git
parent 48e4dea4cd
commit 05e3d7b967

View file

@ -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