summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_source_index.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/rubygems/test_gem_source_index.rb b/test/rubygems/test_gem_source_index.rb
index adb9037caa..263826759a 100644
--- a/test/rubygems/test_gem_source_index.rb
+++ b/test/rubygems/test_gem_source_index.rb
@@ -128,13 +128,8 @@ WARNING: Invalid .gemspec format in '#{spec_file}'
assert_equal '', @ui.output
- expected = <<-EOF
-WARNING: compile error
-#{spec_file}:1: syntax error, unexpected $end
-WARNING: 1 +
- EOF
-
- assert_equal expected, @ui.error
+ assert_match(/syntax error/, @ui.error)
+ assert_match(/1 \+/, @ui.error)
end
def test_self_load_specification_system_exit