diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-04-05 10:50:15 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-04-05 05:49:25 +0000 |
commit | a464951fc79271a87d09a13f8fd9965dda6e2e61 () | |
tree | fd3610e162e702da9a20a52a14a5f4dc637074a0 /test/rubygems/test_gem_commands_setup_command.rb | |
parent | cbeea5f3e6a5b5112ff5973c02c934ed415e2dc7 (diff) |
[rubygems/rubygems] Unify win_platform? to Gem.win_platform?
https://.com/rubygems/rubygems/commit/b18a4ef076
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -142,7 +142,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase ruby_exec = sprintf Gem.default_exec_format, "ruby" - bin_env = win_platform? ? "" : %w[/usr/bin/env /bin/env].find {|f| File.executable?(f) } + " " assert_match %r{\A#!\s*#{bin_env}#{ruby_exec}}, File.read(default_gem_bin_path) assert_match %r{\A#!\s*#{bin_env}#{ruby_exec}}, File.read(default_bundle_bin_path) assert_match %r{\A#!\s*#{bin_env}#{ruby_exec}}, File.read(default_bundler_bin_path) |