diff options
Diffstat (limited to 'test/rdoc/test_rdoc_markup_heading.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_heading.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_heading.rb b/test/rdoc/test_rdoc_markup_heading.rb index eef051a64e..ff53ff5ac3 100644 --- a/test/rdoc/test_rdoc_markup_heading.rb +++ b/test/rdoc/test_rdoc_markup_heading.rb @@ -12,6 +12,15 @@ class TestRDocMarkupHeading < RDoc::TestCase assert_equal 'label-Hello+Friend%21', @h.aref end + def test_label + assert_equal 'label-Hello+Friend%21', @h.label + assert_equal 'label-Hello+Friend%21', @h.label(nil) + + context = RDoc::NormalClass.new 'Foo' + + assert_equal 'class-Foo-label-Hello+Friend%21', @h.label(context) + end + def test_plain_html assert_equal 'Hello <strong>Friend</strong>!', @h.plain_html end |