diff options
| author | ochko <[email protected]> | 2012-02-16 11:07:58 +0900 |
|---|---|---|
| committer | ochko <[email protected]> | 2012-02-16 11:07:58 +0900 |
| commit | 8f65949ba1012382d9151c179255a60423d2be5a (patch) | |
| tree | 420947b4eafae5e5a0ce3c57774f992bc10e1f81 /test | |
| parent | cd890f6c5a84f6b5c5458f4c6edeab9103bf1cee (diff) | |
| download | caxlsx-8f65949ba1012382d9151c179255a60423d2be5a.tar.gz caxlsx-8f65949ba1012382d9151c179255a60423d2be5a.zip | |
Next iteration after setting fixed width same as :ignore is given
Diffstat (limited to 'test')
| -rw-r--r-- | test/workbook/worksheet/tc_worksheet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_worksheet.rb b/test/workbook/worksheet/tc_worksheet.rb index f6180691..f2c0ae9e 100644 --- a/test/workbook/worksheet/tc_worksheet.rb +++ b/test/workbook/worksheet/tc_worksheet.rb @@ -146,7 +146,7 @@ class TestWorksheet < Test::Unit::TestCase def test_set_fixed_width_column @ws.add_row ["mule", "donkey", "horse"], :widths => [20, :ignore, nil] assert(@ws.auto_fit_data.size == 3, "a data item for each column") - assert_equal({:sz=>11, :fixed=>20, :longest=>"mule" }, @ws.auto_fit_data[0], "adding a row with fixed width updates :fixed attribute") + assert_equal({:sz=>11, :longest=>"", :fixed=>20 }, @ws.auto_fit_data[0], "adding a row with fixed width updates :fixed attribute") assert_equal({:sz=>11, :longest=>"", :fixed=>nil}, @ws.auto_fit_data[1], ":ignore does not set any data") assert_equal({:sz=>11, :longest=>"horse", :fixed=>nil}, @ws.auto_fit_data[2], "nil, well really anything else just works as normal") @ws.add_row ["mule", "donkey", "horse"] |
