diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-05 17:06:01 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-05 09:50:29 +0000 |
commit | e003784fc8bfa527cf21c317741101a713c041c0 (patch) | |
tree | 0d69690aec6d5f156ed90241d6beb46e112cc503 /test/rubygems/test_gem_commands_query_command.rb | |
parent | 65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
https://github.com/rubygems/rubygems/commit/9264d83421
Diffstat (limited to 'test/rubygems/test_gem_commands_query_command.rb')
-rw-r--r-- | test/rubygems/test_gem_commands_query_command.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rubygems/test_gem_commands_query_command.rb b/test/rubygems/test_gem_commands_query_command.rb index 0a813b519d..8e590df124 100644 --- a/test/rubygems/test_gem_commands_query_command.rb +++ b/test/rubygems/test_gem_commands_query_command.rb @@ -552,8 +552,8 @@ pl (1 i386-linux) @cmd.execute end - assert_match %r{^a }, @stub_ui.output - assert_match %r{^pl }, @stub_ui.output + assert_match(/^a /, @stub_ui.output) + assert_match(/^pl /, @stub_ui.output) assert_equal "", @stub_ui.error end @@ -565,8 +565,8 @@ pl (1 i386-linux) @cmd.send :show_gems, /a/i end - assert_match %r{^a }, @stub_ui.output - refute_match %r{^pl }, @stub_ui.output + assert_match(/^a /, @stub_ui.output) + refute_match(/^pl /, @stub_ui.output) assert_empty @stub_ui.error end |