Skip to content
This repository

test/rubygems/test_gem_indexer.rb in ruby-trunk fails if builder gem is installed #445

Closed
nobu opened this Issue · 1 comment

2 participants

Nobuyoshi Nakada Evan Phoenix
Nobuyoshi Nakada
nobu commented

Since HTML5 support has been introduced into CGI.escapeHTML, also ' is escaped as ' now.

This failure occurs only if builder gem is installed, since lib/rubygems/indexer.rb doesn't work at all unless the builder gem is available, and the test too, of course.

I'm curious why these two files are not parts of the builder gem, but are bundled as parts of rubygems.

TestGemIndexer#test_generate_index = 0.13 s
  1) Failure:
test_generate_index(TestGemIndexer) [test/rubygems/test_gem_indexer.rb:258]:
--- expected
+++ actual
@@ -107,13 +107,13 @@
       <description>
 &lt;pre&gt;This line is really, really long.  So long, in fact, that it is more than
 eighty characters long!  The purpose of this line is for testing wrapping
-behavior because sometimes people don't wrap their text to eighty characters.
+behavior because sometimes people don&apos;t wrap their text to eighty characters.
 Without the wrapping, the text might not look good in the RSS feed.

 Also, a list:
-  * An entry that's actually kind of sort
-  * an entry that's really long, which will probably get wrapped funny.
-That's ok, somebody wasn't thinking straight when they made it more than
+  * An entry that&apos;s actually kind of sort
+  * an entry that&apos;s really long, which will probably get wrapped funny.
+That&apos;s ok, somebody wasn&apos;t thinking straight when they made it more than
 eighty characters.&lt;/pre&gt;
       </description>
       <author>example@example.com (Example), example2@example.com (Example2)</author>


Finished tests in 3.547257s, 3.3829 tests/s, 34.1109 assertions/s.
12 tests, 121 assertions, 1 failures, 0 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-08-03 trunk 36602) [x86_64-darwin11]
Evan Phoenix
Owner

This is a rubygems proper issue.

Evan Phoenix evanphx closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.