diff options
| author | Jurriaan Pruis <[email protected]> | 2014-03-12 22:04:50 +0100 |
|---|---|---|
| committer | Jurriaan Pruis <[email protected]> | 2014-03-12 22:04:50 +0100 |
| commit | 7b3b8a6ad71290d3e84f4ba10329f2855c5c3522 (patch) | |
| tree | ce99479c5db74e6474b52c9eed0607102beb815a /test/workbook/worksheet/tc_worksheet.rb | |
| parent | a3a1b62d7751b7323c7ac0f23e75bb8409dffb9b (diff) | |
| download | caxlsx-7b3b8a6ad71290d3e84f4ba10329f2855c5c3522.tar.gz caxlsx-7b3b8a6ad71290d3e84f4ba10329f2855c5c3522.zip | |
Fix autowidth in combination with sanitizing
By only sanitizing just before serialisation.
Diffstat (limited to 'test/workbook/worksheet/tc_worksheet.rb')
| -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 b399b306..574522a2 100644 --- a/test/workbook/worksheet/tc_worksheet.rb +++ b/test/workbook/worksheet/tc_worksheet.rb @@ -402,7 +402,7 @@ class TestWorksheet < Test::Unit::TestCase Axlsx::trust_input = false nasties = "\v\u2028\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\u001f" @ws.add_row [nasties] - assert_equal(nil, @ws.rows.last.cells.last.value.index("\v")) + assert_equal(0, @ws.rows.last.cells.last.value.index("\v")) assert_equal(nil, @ws.to_xml_string.index("\v")) Axlsx::trust_input = old end |
