summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_setup_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-04-07 09:15:17 +0900
committergit <[email protected]>2023-04-07 05:13:05 +0000
commit250e97c0fba48d1f87ccecb1b1e1b4bd2a30c388 ()
treeb9018bb2916c2e007b7f57981295e4c4f0fd5adc /test/rubygems/test_gem_commands_setup_command.rb
parent84ce6fc87347c15cc81939de2d1872984711a4ed (diff)
[rubygems/rubygems] util/rubocop -A --only Style/FormatString
https://.com/rubygems/rubygems/commit/132a56569d
-rw-r--r--test/rubygems/test_gem_commands_setup_command.rb2
1 files changed, 1 insertions, 1 deletions
@@ -138,7 +138,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase
@cmd.options[:env_shebang] = true
@cmd.execute
- ruby_exec = sprintf Gem.default_exec_format, "ruby"
bin_env = Gem.win_platform? ? "" : %w[/usr/bin/env /bin/env].find {|f| File.executable?(f) } + " "
assert_match(/\A#!\s*#{bin_env}#{ruby_exec}/, File.read(default_gem_bin_path))