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:
parent
48e4dea4cd
commit
05e3d7b967
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue