summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_setup_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-11-05 13:51:11 +0100
committergit <svn-admin@ruby-lang.org>2021-11-05 23:20:49 +0900
commitd47831d554a9fa3ba4a78371914cb2ceb1fec1f7 (patch)
tree3b2b6deb8d5d277056c4891c84a691ef62b06079 /test/rubygems/test_gem_commands_setup_command.rb
parentef6752c6c40579205c5876b5a2de82c35874c5d5 (diff)
[rubygems/rubygems] Bin dir should fall inside destdir
Since that's what happens in real life when `--destdir` is passed. https://github.com/rubygems/rubygems/commit/55637bdc8a
Diffstat (limited to 'test/rubygems/test_gem_commands_setup_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb
index b712c8a2a7..59ff45b61e 100644
--- a/test/rubygems/test_gem_commands_setup_command.rb
+++ b/test/rubygems/test_gem_commands_setup_command.rb
@@ -245,9 +245,8 @@ class TestGemCommandsSetupCommand < Gem::TestCase
def test_install_default_bundler_gem_with_destdir_flag
@cmd.extend FileUtils
- bin_dir = File.join(@gemhome, 'bin')
-
destdir = File.join(@tempdir, 'foo')
+ bin_dir = File.join(destdir, 'bin')
@cmd.options[:destdir] = destdir