summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-16 01:09:53 -0800
committerRandy Morgan <[email protected]>2012-02-16 01:09:53 -0800
commit3eded043ca584914c575dde362d7fecccf905cc7 (patch)
tree420947b4eafae5e5a0ce3c57774f992bc10e1f81 /test
parentcd890f6c5a84f6b5c5458f4c6edeab9103bf1cee (diff)
parent8f65949ba1012382d9151c179255a60423d2be5a (diff)
downloadcaxlsx-3eded043ca584914c575dde362d7fecccf905cc7.tar.gz
caxlsx-3eded043ca584914c575dde362d7fecccf905cc7.zip
Merge pull request #28 from ochko/master
Next iteration after setting fixed width
Diffstat (limited to 'test')
-rw-r--r--test/workbook/worksheet/tc_worksheet.rb2
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"]