summaryrefslogtreecommitdiff
path: root/test/rdoc/support
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-12-18 05:23:53 +0800
committergit <[email protected]>2024-12-17 21:23:56 +0000
commit1254850a616b0af57b11c2d744af1ce9988aa5e7 (patch)
tree7ecdec582f778abf6588a7ec1d8ac809dfb55d9c /test/rdoc/support
parent408f5368908889e1af141b05d3afd8704b0ef33a (diff)
[ruby/rdoc] Update tests for ruby/rdoc#1247
(https://github.com/ruby/rdoc/pull/1248) https://github.com/ruby/rdoc/commit/94b9858000
Diffstat (limited to 'test/rdoc/support')
-rw-r--r--test/rdoc/support/text_formatter_test_case.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rdoc/support/text_formatter_test_case.rb b/test/rdoc/support/text_formatter_test_case.rb
index 9b3d7ed626..5a51b16fd7 100644
--- a/test/rdoc/support/text_formatter_test_case.rb
+++ b/test/rdoc/support/text_formatter_test_case.rb
@@ -103,13 +103,13 @@ class RDoc::Markup::TextFormatterTestCase < RDoc::Markup::FormatterTestCase
# Test case that calls <tt>@to.accept_table</tt>
def test_accept_table_align
- header = ['AA', 'BB', 'CCCCC']
+ header = ['AA', 'BB', 'CCCCC', 'DDDDD']
body = [
- ['', 'bbb', 'c'],
- ['aaaa', 'b', ''],
- ['a', '', 'cc']
+ ['', 'bbb', 'c', ''],
+ ['aaaa', 'b', '', 'dd'],
+ ['a', '', 'cc', 'dd']
]
- aligns = [nil, :left, :right]
+ aligns = [nil, :left, :right, :center]
@to.start_accepting
@to.accept_table header, body, aligns