From ac0600f12fb15d1b3fe0cce1ca7a2dced4cf5285 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Wed, 9 May 2012 08:21:39 +0900 Subject: patch nil row style issue https://github.com/randym/axlsx/issues/91 --- test/workbook/worksheet/tc_row.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'test/workbook/worksheet/tc_row.rb') diff --git a/test/workbook/worksheet/tc_row.rb b/test/workbook/worksheet/tc_row.rb index f9765a7f..bc6d4139 100644 --- a/test/workbook/worksheet/tc_row.rb +++ b/test/workbook/worksheet/tc_row.rb @@ -27,18 +27,6 @@ class TestRow < Test::Unit::TestCase r.cells.each { |c| assert_equal(c.style,1) } end - def test_nil_cells - row = @ws.add_row([nil,1,2,nil,4,5,nil]) - r_s_xml = Nokogiri::XML(row.to_xml_string(0, '')) - assert_equal(r_s_xml.xpath(".//row/c").size, 4) - end - - def test_nil_cell_r - row = @ws.add_row([nil,1,2,nil,4,5,nil]) - r_s_xml = Nokogiri::XML(row.to_xml_string(0, '')) - assert_equal(r_s_xml.xpath(".//row/c").first['r'], 'B1') - assert_equal(r_s_xml.xpath(".//row/c").last['r'], 'F1') - end def test_index assert_equal(@row.index, @row.worksheet.rows.index(@row)) -- cgit v1.2.3