diff options
| author | Paul Kmiec <[email protected]> | 2023-05-15 17:04:59 -0700 |
|---|---|---|
| committer | Paul Kmiec <[email protected]> | 2023-05-15 17:04:59 -0700 |
| commit | 1201ef7145463a14d263a093d7d53a2f235e48e0 (patch) | |
| tree | c4e60b2bd74fb22fb93e3bad1cef15f7bdc4e244 /test | |
| parent | 447b2522bc4a06c8436e708eae40cf7244dc0ec4 (diff) | |
| download | caxlsx-1201ef7145463a14d263a093d7d53a2f235e48e0.tar.gz caxlsx-1201ef7145463a14d263a093d7d53a2f235e48e0.zip | |
Remove ability to set `u=` to true in favor of :single
The `u=` would convert `true` to `:single` for backwards compatibility.
However, it is more explicit to set it to `:single` or one of the other
underline options instead of relying on the conversion.
Diffstat (limited to 'test')
| -rw-r--r-- | test/workbook/worksheet/tc_cell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_cell.rb b/test/workbook/worksheet/tc_cell.rb index a534a8dc..fef23ede 100644 --- a/test/workbook/worksheet/tc_cell.rb +++ b/test/workbook/worksheet/tc_cell.rb @@ -567,7 +567,7 @@ class TestCell < Test::Unit::TestCase def test_to_xml # TODO: This could use some much more stringent testing related to the xml content generated! @ws.add_row [Time.now, Date.today, true, 1, 1.0, "text", "=sum(A1:A2)", "2013-01-13T13:31:25.123"] - @ws.rows.last.cells[5].u = true + @ws.rows.last.cells[5].u = :single schema = Nokogiri::XML::Schema(File.open(Axlsx::SML_XSD)) doc = Nokogiri::XML(@ws.to_xml_string) |
