mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
9264d83421
This commit is contained in:
parent
65d27d3c0a
commit
e003784fc8
46 changed files with 221 additions and 222 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue