summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_setup_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2020-07-15 08:38:08 +0200
committerHiroshi SHIBATA <[email protected]>2020-07-31 21:07:19 +0900
commita9b044e97b710a30f0598b6f85da29217471f030 ()
treedbbefa095c9264fda167b9733eb99ce569fd678b /test/rubygems/test_gem_commands_setup_command.rb
parentfe53e5a9f3ff3b0574ec7033571d58f4976baf8c (diff)
[rubygems/rubygems] Setup no longer generates formatted executables by default
Catch up with that change in `gem update --system` tests. https://.com/rubygems/rubygems/commit/127ba14344
Notes: Merged: https://.com/ruby/ruby/pull/3379
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb10
1 files changed, 4 insertions, 6 deletions
@@ -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
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
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
end
def default_bundle_bin_path
- bundle_exec = sprintf Gem.default_exec_format, 'bundle'
- File.join @install_dir, 'bin', bundle_exec
end
end unless Gem.java_platform?