diff options
Diffstat (limited to 'test/csv/test_table.rb')
-rwxr-xr-x[-rw-r--r--] | test/csv/test_table.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb index d0b421750f..67e5b54daf 100644..100755 --- a/test/csv/test_table.rb +++ b/test/csv/test_table.rb @@ -7,11 +7,9 @@ # Copyright 2005 James Edward Gray II. You can redistribute or modify this code # under the terms of Ruby's license. -require "test/unit" +require_relative "base" -require "csv" - -class TestCSVTable < Test::Unit::TestCase +class TestCSV::Table < TestCSV def setup @rows = [ CSV::Row.new(%w{A B C}, [1, 2, 3]), CSV::Row.new(%w{A B C}, [4, 5, 6]), @@ -253,7 +251,7 @@ 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, + assert_equal( csv.lines.to_a[1..-1].join(''), @table.to_csv(:write_headers => false) ) # with headers @@ -413,4 +411,6 @@ class TestCSVTable < Test::Unit::TestCase @table.inspect.encoding ), "inspect() was not ASCII compatible." ) end + + with_diffrent_ofs end |