diff options
author | David RodrÃguez <[email protected]> | 2021-11-05 13:55:09 +0100 |
---|---|---|
committer | git <[email protected]> | 2021-12-05 05:47:45 +0900 |
commit | 9dc76e102ec00bb93b7aafaaa1309ca426d02595 (patch) | |
tree | f14ed3eeb2ea95298fcbc6c59c865ff82c85e4aa /test/rubygems/test_gem_commands_setup_command.rb | |
parent | ec28771fde883f7d2fe04b46f06556112454f4d6 (diff) |
[rubygems/rubygems] Don't write outside of destdir when installing default bundler
https://github.com/rubygems/rubygems/commit/a62d00c5e8
Diffstat (limited to 'test/rubygems/test_gem_commands_setup_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index 50f99bc419..08f94d52bf 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -245,6 +245,8 @@ class TestGemCommandsSetupCommand < Gem::TestCase def test_install_default_bundler_gem_with_destdir_flag @cmd.extend FileUtils + FileUtils.chmod "-w", @gemhome + destdir = File.join(@tempdir, 'foo') bin_dir = File.join(destdir, 'bin') |