diff options
| author | Randy Morgan <[email protected]> | 2012-11-05 14:09:03 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-11-05 14:09:03 +0900 |
| commit | 887734c808438f30f419c5c26598e2f42ee01242 (patch) | |
| tree | 599565f503be27447ed4a7cdbd07829b5f3b8715 /test/workbook/worksheet/tc_row.rb | |
| parent | 8ffd7652c4cc66b52f7992f24a2effc7dc3958c8 (diff) | |
| download | caxlsx-887734c808438f30f419c5c26598e2f42ee01242.tar.gz caxlsx-887734c808438f30f419c5c26598e2f42ee01242.zip | |
refactored Row serialization
Diffstat (limited to 'test/workbook/worksheet/tc_row.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_row.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb index b126845a..d847d475 100644 --- a/test/workbook/worksheet/tc_row.rb +++ b/test/workbook/worksheet/tc_row.rb @@ -12,13 +12,13 @@ class TestRow < Test::Unit::TestCase assert(@row.cells.empty?, "no cells by default") assert_equal(@row.worksheet, @ws, "has a reference to the worksheet") assert_nil(@row.height, "height defaults to nil") - assert([email protected]_height?, "no custom height by default") + assert([email protected]_height, "no custom height by default") end def test_initialize_with_fixed_height row = @ws.add_row([1,2,3,4,5], :height=>40) assert_equal(40, row.height) - assert(row.custom_height?) + assert(row.custom_height) end def test_style @@ -57,7 +57,7 @@ class TestRow < Test::Unit::TestCase def test_custom_height @row.height = 20 - assert(@row.custom_height?) + assert(@row.custom_height) end def test_height @@ -111,7 +111,7 @@ class TestRow < Test::Unit::TestCase @row.add_cell 1 @row.height = 20 r_s_xml = Nokogiri::XML(@row.to_xml_string(0, '')) - assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight=1]").size, 1) + assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight='true']").size, 1) end end |
