[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral

9264d83421
This commit is contained in:
Hiroshi SHIBATA 2023-04-05 17:06:01 +09:00 committed by git
parent 65d27d3c0a
commit e003784fc8
46 changed files with 221 additions and 222 deletions

View file

@ -162,7 +162,7 @@ class TestGemCommandsPristineCommand < Gem::TestCase
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(gem_exec)
assert_match(/\A#!\s*#{bin_env}#{ruby_exec}/, File.read(gem_exec))
end
def test_execute_extensions_explicit
@ -504,7 +504,7 @@ class TestGemCommandsPristineCommand < Gem::TestCase
end
end
assert_match %r{at least one gem name}, e.message
assert_match(/at least one gem name/, e.message)
end
def test_execute_only_executables