mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Setup no longer generates formatted executables by default
Catch up with that change in `gem update --system` tests.
127ba14344
This commit is contained in:
parent
fe53e5a9f3
commit
a9b044e97b
Notes:
git
2020-07-31 21:08:09 +09:00
1 changed files with 4 additions and 6 deletions
|
|
@ -220,7 +220,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
||||||
assert_path_exists File.join(bin_dir, "#{e}.bat")
|
assert_path_exists File.join(bin_dir, "#{e}.bat")
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_path_exists File.join bin_dir, Gem.default_exec_format % e
|
assert_path_exists File.join bin_dir, e
|
||||||
end
|
end
|
||||||
|
|
||||||
default_dir = Gem.default_specifications_dir
|
default_dir = Gem.default_specifications_dir
|
||||||
|
|
@ -266,7 +266,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
||||||
assert_path_exists File.join(bin_dir, "#{e}.bat")
|
assert_path_exists File.join(bin_dir, "#{e}.bat")
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_path_exists File.join bin_dir, Gem.default_exec_format % e
|
assert_path_exists File.join bin_dir, e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -411,12 +411,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_gem_bin_path
|
def default_gem_bin_path
|
||||||
gem_exec = sprintf Gem.default_exec_format, 'gem'
|
File.join @install_dir, 'bin', 'gem'
|
||||||
File.join @install_dir, 'bin', gem_exec
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def default_bundle_bin_path
|
def default_bundle_bin_path
|
||||||
bundle_exec = sprintf Gem.default_exec_format, 'bundle'
|
File.join @install_dir, 'bin', 'bundle'
|
||||||
File.join @install_dir, 'bin', bundle_exec
|
|
||||||
end
|
end
|
||||||
end unless Gem.java_platform?
|
end unless Gem.java_platform?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue