diff options
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_html_snippet.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html_snippet.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html_snippet.rb b/test/rdoc/test_rdoc_markup_to_html_snippet.rb index 98102ba553..7e01413dda 100644 --- a/test/rdoc/test_rdoc_markup_to_html_snippet.rb +++ b/test/rdoc/test_rdoc_markup_to_html_snippet.rb @@ -458,8 +458,7 @@ So there you have it expected = <<-EXPECTED <p>Hello -<p>This is some text, it <strong>will</strong> be cut off after 100 characters -and an ellipsis must follow +<p>This is some text, it <strong>will</strong> be cut off after 100 characters and an ellipsis must follow <p>So there you #{@ellipsis} EXPECTED @@ -563,8 +562,7 @@ NOTE: Given Foo::Bar, Bar is considered a class even though it may be a RDOC expected = <<-EXPECTED -<p>Extracts the class, selector and method name parts from <code>name</code> -like Foo::Bar#baz. +<p>Extracts the class, selector and method name parts from <code>name</code> like Foo::Bar#baz. <p>NOTE: Given Foo::Bar, #{@ellipsis} EXPECTED @@ -652,10 +650,10 @@ This routine modifies its +comment+ parameter. assert_equal 3, @to.characters end - def test_handle_special_HYPERLINK_link - special = RDoc::Markup::Special.new 0, 'link:README.txt' + def test_handle_regexp_HYPERLINK_link + target = RDoc::Markup::RegexpHandling.new 0, 'link:README.txt' - link = @to.handle_special_HYPERLINK special + link = @to.handle_regexp_HYPERLINK target assert_equal 'README.txt', link end |