From a9b044e97b710a30f0598b6f85da29217471f030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 15 Jul 2020 08:38:08 +0200 Subject: [PATCH] [rubygems/rubygems] Setup no longer generates formatted executables by default Catch up with that change in `gem update --system` tests. https://github.com/rubygems/rubygems/commit/127ba14344 --- test/rubygems/test_gem_commands_setup_command.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index c3c6644140..050c1ce3a6 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -220,7 +220,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase assert_path_exists File.join(bin_dir, "#{e}.bat") end - assert_path_exists File.join bin_dir, Gem.default_exec_format % e + assert_path_exists File.join bin_dir, e end default_dir = Gem.default_specifications_dir @@ -266,7 +266,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase assert_path_exists File.join(bin_dir, "#{e}.bat") end - assert_path_exists File.join bin_dir, Gem.default_exec_format % e + assert_path_exists File.join bin_dir, e end end end @@ -411,12 +411,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase end def default_gem_bin_path - gem_exec = sprintf Gem.default_exec_format, 'gem' - File.join @install_dir, 'bin', gem_exec + File.join @install_dir, 'bin', 'gem' end def default_bundle_bin_path - bundle_exec = sprintf Gem.default_exec_format, 'bundle' - File.join @install_dir, 'bin', bundle_exec + File.join @install_dir, 'bin', 'bundle' end end unless Gem.java_platform?