mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rdoc.rb: Import RDoc 3.9.1. Fixes bugs in the RDoc::Markup
parser. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d2efc1fda
commit
a429cafc4d
7 changed files with 61 additions and 7 deletions
|
@ -25,6 +25,14 @@ class TestRDocMarkupToHtmlCrossref < XrefTestCase
|
|||
assert_equal "\n<p><a href=\"C1.html\">C1</a></p>\n", result
|
||||
end
|
||||
|
||||
def test_gen_url
|
||||
assert_equal '<a href="C1.html">Some class</a>',
|
||||
@to.gen_url('rdoc-ref:C1', 'Some class')
|
||||
|
||||
assert_equal '<a href="http://example">HTTP example</a>',
|
||||
@to.gen_url('http://example', 'HTTP example')
|
||||
end
|
||||
|
||||
def test_handle_special_CROSSREF
|
||||
assert_equal "<a href=\"C2/C3.html\">C2::C3</a>", SPECIAL('C2::C3')
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue