diff options
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_ansi.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_ansi.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_ansi.rb b/test/rdoc/test_rdoc_markup_to_ansi.rb index 97b4959571..a8fab98d19 100644 --- a/test/rdoc/test_rdoc_markup_to_ansi.rb +++ b/test/rdoc/test_rdoc_markup_to_ansi.rb @@ -175,6 +175,18 @@ class TestRDocMarkupToAnsi < RDoc::Markup::FormatterTestCase assert_equal "\e[0mhi\n", @to.res.join end + def accept_raw + raw = <<-RAW.rstrip +\e[0m<table> +<tr><th>Name<th>Count +<tr><td>a<td>1 +<tr><td>b<td>2 +</table> + RAW + + assert_equal raw, @to.res.join + end + def accept_rule assert_equal "\e[0m#{'-' * 78}\n", @to.res.join end |