Skip to content

Commit

Permalink
Explicit check file not created outside of destination
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 8, 2021
1 parent 9180b39 commit 1e363db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/rubygems/test_gem_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ def test_extract_symlink_parent

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
Expand Down

0 comments on commit 1e363db

Please sign in to comment.