require "test/unit" require "Spreadsheet/HTML" class Test_Padding < Test::Unit::TestCase def test_empty data = Array[ %w(header1 header2 header3), Array[ 'foo1', 'bar1', '' ], Array[ 'foo2', 'bar2', '' ], ] gen = Spreadsheet::HTML.new( 'data' => data ) # assert_equal( # '
header1 | header2 | header3 |
---|---|---|
foo1 | bar1 | |
foo2 | bar2 |