aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-27 09:59:11 +0900
committergit <svn-admin@ruby-lang.org>2022-12-12 06:00:41 +0000
commite1f42844a0b2a4dcf4c7338c41ef92f1b45393d8 (patch)
tree3bf03e5e59e9ee00fe5c4dfe92f6b77c52eb5c4e /test/rubygems
parentb8e542b46350cc1e7975bb711082e4cc6fcb7c82 (diff)
downloadruby-e1f42844a0b2a4dcf4c7338c41ef92f1b45393d8.tar.gz
[rubygems/rubygems] Prefer RbConfig::CONFIG['EXEEXT'] over hardcorded '.exe'
https://github.com/rubygems/rubygems/commit/bc84b2d262
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 8d94f82d8e..45a5a14251 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -337,7 +337,7 @@ class Gem::TestCase < Test::Unit::TestCase
ruby
end
- @git = ENV["GIT"] || (win_platform? ? "git.exe" : "git")
+ @git = ENV["GIT"] || "git#{RbConfig::CONFIG['EXEEXT']}"
Gem.ensure_gem_subdirectories @gemhome
Gem.ensure_default_gem_subdirectories @gemhome
@@ -1263,7 +1263,7 @@ Also, a list:
ruby = ENV["RUBY"]
return ruby if ruby
ruby = "ruby"
- rubyexe = "#{ruby}.exe"
+ rubyexe = "#{ruby}#{RbConfig::CONFIG['EXEEXT']}"
3.times do
if File.exist?(ruby) && File.executable?(ruby) && !File.directory?(ruby)