diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-03-24 19:51:43 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-03-30 12:42:10 +0900 |
commit | ba9dcdab3669f11b2e265712ceb43227c366fc3b (patch) | |
tree | e6aa19535d1b3388c9303497e1dc649e9e804ed8 /test/rubygems/test_gem_commands_setup_command.rb | |
parent | f987302cf4a59944e5f01572d8ac36bbdbbc97cc (diff) | |
download | ruby-ba9dcdab3669f11b2e265712ceb43227c366fc3b.tar.gz |
[rubygems/rubygems] Enable Style/PercentLiteralDelimiters cop in rubygems
So it matches the style used by bundler.
https://github.com/rubygems/rubygems/commit/ab0580fd65
Diffstat (limited to 'test/rubygems/test_gem_commands_setup_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_setup_command.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_setup_command.rb b/test/rubygems/test_gem_commands_setup_command.rb index f92b3dc739..76792603d2 100644 --- a/test/rubygems/test_gem_commands_setup_command.rb +++ b/test/rubygems/test_gem_commands_setup_command.rb @@ -196,10 +196,10 @@ 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(gem_bin_path) + 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(gem_bin_path) end def test_pem_files_in |