summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_indexer.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-05 17:06:01 +0900
committergit <svn-admin@ruby-lang.org>2023-04-05 09:50:29 +0000
commite003784fc8bfa527cf21c317741101a713c041c0 (patch)
tree0d69690aec6d5f156ed90241d6beb46e112cc503 /test/rubygems/test_gem_indexer.rb
parent65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (diff)
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
https://github.com/rubygems/rubygems/commit/9264d83421
Diffstat (limited to 'test/rubygems/test_gem_indexer.rb')
-rw-r--r--test/rubygems/test_gem_indexer.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/rubygems/test_gem_indexer.rb b/test/rubygems/test_gem_indexer.rb
index 676caee9c1..56bf3d9264 100644
--- a/test/rubygems/test_gem_indexer.rb
+++ b/test/rubygems/test_gem_indexer.rb
@@ -49,7 +49,7 @@ class TestGemIndexer < Gem::TestCase
def test_initialize
assert_equal @indexerdir, @indexer.dest_directory
Dir.mktmpdir("gem_generate_index") do |tmpdir|
- assert_match %r{#{tmpdir.match(/.*-/)}}, @indexer.directory
+ assert_match(%r{#{tmpdir.match(/.*-/)}}, @indexer.directory) # rubocop:disable Style/RegexpLiteral
end
with_indexer(@indexerdir) do |indexer|
@@ -206,15 +206,14 @@ class TestGemIndexer < Gem::TestCase
@indexer.generate_index
end
- assert_match %r{^\.\.\.\.\.\.\.\.\.\.\.\.$}, @ui.output
- assert_match %r{^Generating Marshal quick index gemspecs for 12 gems$},
- @ui.output
- assert_match %r{^Complete$}, @ui.output
- assert_match %r{^Generating specs index$}, @ui.output
- assert_match %r{^Generating latest specs index$}, @ui.output
- assert_match %r{^Generating prerelease specs index$}, @ui.output
- assert_match %r{^Complete$}, @ui.output
- assert_match %r{^Compressing indices$}, @ui.output
+ assert_match(/^\.\.\.\.\.\.\.\.\.\.\.\.$/, @ui.output)
+ assert_match(/^Generating Marshal quick index gemspecs for 12 gems$/, @ui.output)
+ assert_match(/^Complete$/, @ui.output)
+ assert_match(/^Generating specs index$/, @ui.output)
+ assert_match(/^Generating latest specs index$/, @ui.output)
+ assert_match(/^Generating prerelease specs index$/, @ui.output)
+ assert_match(/^Complete$/, @ui.output)
+ assert_match(/^Compressing indices$/, @ui.output)
assert_equal "", @ui.error
end