diff --git a/test/rubygems/test_gem_server.rb b/test/rubygems/test_gem_server.rb index 2fdc25862e..75942ff911 100644 --- a/test/rubygems/test_gem_server.rb +++ b/test/rubygems/test_gem_server.rb @@ -405,7 +405,7 @@ class TestGemServer < Gem::TestCase # # # [www] - regex_match = /xsshomepagegem 1<\/b>[\n\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\n\s]+\[www\]<\/a>/ + regex_match = /xsshomepagegem 1<\/b>[\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\s]+\[www\]<\/a>/ assert_match regex_match, @res.body end @@ -460,7 +460,7 @@ class TestGemServer < Gem::TestCase # # # [www] - regex_match = /invalidhomepagegem 1<\/b>[\n\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\n\s]+\[www\]<\/a>/ + regex_match = /invalidhomepagegem 1<\/b>[\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\s]+\[www\]<\/a>/ assert_match regex_match, @res.body end @@ -487,7 +487,7 @@ class TestGemServer < Gem::TestCase assert_equal 200, @res.status assert_match 'validhomepagegemhttp 1', @res.body - regex_match = /validhomepagegemhttp 1<\/b>[\n\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\n\s]+\[www\]<\/a>/ + regex_match = /validhomepagegemhttp 1<\/b>[\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\s]+\[www\]<\/a>/ assert_match regex_match, @res.body end @@ -514,7 +514,7 @@ class TestGemServer < Gem::TestCase assert_equal 200, @res.status assert_match 'validhomepagegemhttps 1', @res.body - regex_match = /validhomepagegemhttps 1<\/b>[\n\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\n\s]+\[www\]<\/a>/ + regex_match = /validhomepagegemhttps 1<\/b>[\s]+(\[rdoc\]<\/span>|\[rdoc\]<\/a>)[\s]+\[www\]<\/a>/ assert_match regex_match, @res.body end