diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index b712c8a2a7f6..59ff45b61e53 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -245,9 +245,8 @@ def test_install_default_bundler_gem_with_force_flag 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