1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc: Update to RDoc 4.2.0.

* test/rdoc:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2014-12-07 01:22:37 +00:00
parent 7d2d6d0a2f
commit 4260aa1dc3
28 changed files with 622 additions and 177 deletions

View file

@ -309,7 +309,7 @@ class TestRDocMarkupToHtmlSnippet < RDoc::Markup::FormatterTestCase
end
def accept_verbatim
assert_equal "\n<pre>hi\n world</pre>\n", @to.res.join
assert_equal "\n<pre class=\"ruby\"><span class=\"ruby-identifier\">hi</span>\n <span class=\"ruby-identifier\">world</span>\n</pre>\n", @to.res.join
assert_equal 10, @to.characters
end
@ -427,8 +427,7 @@ class TestRDocMarkupToHtmlSnippet < RDoc::Markup::FormatterTestCase
expected = <<-EXPECTED
<pre>#{inner}
</pre>
<pre>#{inner}</pre>
EXPECTED
assert_equal expected, @to.res.join
@ -588,8 +587,9 @@ This routine modifies its +comment+ parameter.
expected = <<-EXPECTED
<p>Look for directives in a normal comment block:
<pre># :stopdoc:
#{inner}</pre>
<pre class=\"ruby\"><span class=\"ruby-comment\"># :stopdoc:</span>
<span class=\"ruby-comment\">#{inner}</span>
</pre>
EXPECTED
actual = @to.convert rdoc
@ -665,8 +665,9 @@ This routine modifies its +comment+ parameter.
expected = <<-EXPECTED
<p>one
<pre>verb1
verb2</pre>
<pre class=\"ruby\"><span class=\"ruby-identifier\">verb1</span>
<span class=\"ruby-identifier\">verb2</span>
</pre>
<p>two
EXPECTED