diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-04-05 17:06:01 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-04-05 09:50:29 +0000 |
commit | e003784fc8bfa527cf21c317741101a713c041c0 () | |
tree | 0d69690aec6d5f156ed90241d6beb46e112cc503 /test/rubygems/test_gem_commands_setup_command.rb | |
parent | 65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
https://.com/rubygems/rubygems/commit/9264d83421
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -69,7 +69,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase @cmd.execute - assert_match %r{\A#!}, File.read(gem_bin_path) end def test_execute_no_regenerate_binstubs @@ -92,7 +92,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase @cmd.execute - assert_match %r{\Arequire}, File.read(gem_plugin_path) end def test_execute_no_regenerate_plugins @@ -115,7 +115,7 @@ class TestGemCommandsSetupCommand < Gem::TestCase @cmd.execute - assert_match %r{\Arequire}, File.read(gem_plugin_path) end def test_execute_informs_about_installed_executables @@ -143,10 +143,10 @@ class TestGemCommandsSetupCommand < Gem::TestCase 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 %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) - assert_match %r{\A#!\s*#{bin_env}#{ruby_exec}}, File.read(gem_bin_path) end def test_destdir_flag_does_not_try_to_write_to_the_default_gem_home |