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

Merge RDoc 6.0.3 from upstream.

It fixed the several bugs that was found after RDoc 6 releasing.

From: SHIBATA Hiroshi <hsbt@ruby-lang.org>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-03-26 05:56:26 +00:00
parent ee83dc3fe4
commit 98c7058bf7
94 changed files with 983 additions and 466 deletions

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true
require 'rdoc/test_case'
require 'minitest_helper'
class TestRDocMarkupFormatter < RDoc::TestCase
@ -111,15 +111,15 @@ class TestRDocMarkupFormatter < RDoc::TestCase
assert_equal 'http', scheme
assert_equal 'example/foo', url
assert_equal nil, id
assert_nil id
end
def test_parse_url_anchor
scheme, url, id = @to.parse_url '#foottext-1'
assert_equal nil, scheme
assert_nil scheme
assert_equal '#foottext-1', url
assert_equal nil, id
assert_nil id
end
def test_parse_url_link
@ -127,7 +127,7 @@ class TestRDocMarkupFormatter < RDoc::TestCase
assert_equal 'link', scheme
assert_equal 'README.txt', url
assert_equal nil, id
assert_nil id
end
def test_parse_url_link_id
@ -135,7 +135,7 @@ class TestRDocMarkupFormatter < RDoc::TestCase
assert_equal 'link', scheme
assert_equal 'README.txt#label-foo', url
assert_equal nil, id
assert_nil id
end
def test_parse_url_rdoc_label
@ -143,7 +143,7 @@ class TestRDocMarkupFormatter < RDoc::TestCase
assert_equal 'link', scheme
assert_equal '#foo', url
assert_equal nil, id
assert_nil id
scheme, url, id = @to.parse_url 'rdoc-label:foo:bar'
@ -157,13 +157,13 @@ class TestRDocMarkupFormatter < RDoc::TestCase
assert_equal 'http', scheme
assert_equal 'http://example/foo', url
assert_equal nil, id
assert_nil id
scheme, url, id = @to.parse_url 'https://example/foo'
assert_equal 'https', scheme
assert_equal 'https://example/foo', url
assert_equal nil, id
assert_nil id
end
def test_convert_tt_special
@ -173,4 +173,3 @@ class TestRDocMarkupFormatter < RDoc::TestCase
end
end