summaryrefslogtreecommitdiff
path: root/test/rdoc/support
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc/support')
-rw-r--r--test/rdoc/support/text_formatter_test_case.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/rdoc/support/text_formatter_test_case.rb b/test/rdoc/support/text_formatter_test_case.rb
index e359028a29..9b3d7ed626 100644
--- a/test/rdoc/support/text_formatter_test_case.rb
+++ b/test/rdoc/support/text_formatter_test_case.rb
@@ -100,6 +100,23 @@ class RDoc::Markup::TextFormatterTestCase < RDoc::Markup::FormatterTestCase
end
##
+ # Test case that calls <tt>@to.accept_table</tt>
+
+ def test_accept_table_align
+ header = ['AA', 'BB', 'CCCCC']
+ body = [
+ ['', 'bbb', 'c'],
+ ['aaaa', 'b', ''],
+ ['a', '', 'cc']
+ ]
+ aligns = [nil, :left, :right]
+ @to.start_accepting
+ @to.accept_table header, body, aligns
+
+ accept_table_align
+ end
+
+ ##
# Test case that calls <tt>@to.attributes</tt> with an escaped
# cross-reference. If this test doesn't pass something may be very
# wrong.