[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
This commit is contained in:
David Rodríguez 2021-11-05 13:51:11 +01:00 committed by git
parent ef6752c6c4
commit d47831d554

View File

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