mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
* backport r33043 from trunk.
* lib/rdoc: Update to RDoc 3.9.3. Fixes RDoc with `ruby -Ku`. Allows HTTPS image paths to be turned into <img> tags. Prevents special markup inside <tt> from being processed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ed77bc70f
commit
6b8fe957ed
12 changed files with 100 additions and 5 deletions
|
@ -306,6 +306,14 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase
|
|||
@to.gen_url('link:example', 'example')
|
||||
end
|
||||
|
||||
def test_gem_url_image_url
|
||||
assert_equal '<img src="http://example.com/image.png" />', @to.gen_url('http://example.com/image.png', 'ignored')
|
||||
end
|
||||
|
||||
def test_gem_url_ssl_image_url
|
||||
assert_equal '<img src="https://example.com/image.png" />', @to.gen_url('https://example.com/image.png', 'ignored')
|
||||
end
|
||||
|
||||
def test_handle_special_HYPERLINK_link
|
||||
special = RDoc::Markup::Special.new 0, 'link:README.txt'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue