aboutsummaryrefslogtreecommitdiffstats
path: root/test/csv/test_table.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/csv/test_table.rb')
-rw-r--r--test/csv/test_table.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb
index b7c72b8fcb..d0b421750f 100644
--- a/test/csv/test_table.rb
+++ b/test/csv/test_table.rb
@@ -253,6 +253,8 @@ class TestCSVTable < Test::Unit::TestCase
# with options
assert_equal( csv.gsub(",", "|").gsub("\n", "\r\n"),
@table.to_csv(col_sep: "|", row_sep: "\r\n") )
+ assert_equal( csv.lines.to_a[1..-1].join,
+ @table.to_csv(:write_headers => false) )
# with headers
assert_equal(csv, @header_table.to_csv)