Skip to content

Commit 474bd31

Browse files
committed
Add test.
1 parent a56019b commit 474bd31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/rdoc/test_rdoc_markup_heading.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ def test_plain_html
2626
assert_equal 'Hello <strong>Friend</strong>!', @h.plain_html
2727
end
2828

29+
def test_plain_html_using_image_alt_as_text
30+
h = RDoc::Markup::Heading.new 1, 'rdoc-image:foo.png:Hello World'
31+
32+
assert_equal 'Hello World', h.plain_html
33+
end
2934
end

0 commit comments

Comments
 (0)