test/rubygems/test_gem_indexer.rb in rubygems-update-3.1.6 vs test/rubygems/test_gem_indexer.rb in rubygems-update-3.2.0.rc.1
- old
+ new
@@ -1,13 +1,9 @@
# frozen_string_literal: true
require 'rubygems/test_case'
require 'rubygems/indexer'
-unless defined?(Builder::XChar)
- warn "Gem::Indexer tests are being skipped. Install builder gem."
-end
-
class TestGemIndexer < Gem::TestCase
def setup
super
@@ -187,19 +183,19 @@
def test_generate_index_ui
use_ui @ui do
@indexer.generate_index
end
- assert_match %r%^\.\.\.\.\.\.\.\.\.\.\.\.$%, @ui.output
- assert_match %r%^Generating Marshal quick index gemspecs for 12 gems$%,
+ 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 %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_equal '', @ui.error
end
def test_generate_index_specs
@@ -358,6 +354,6 @@
def refute_indexed(dir, name)
file = File.join dir, name
refute File.exist?(file), "#{file} exists"
end
-end if defined?(Builder::XChar)
+end