test/workbook/worksheet/tc_row.rb in axlsx-2.0.1 vs test/workbook/worksheet/tc_row.rb in axlsx-2.1.0.pre
- old
+ new
@@ -27,11 +27,11 @@
r.cells.each { |c| assert_equal(c.style,1) }
end
def test_index
- assert_equal(@row.index, @row.worksheet.rows.index(@row))
+ assert_equal(@row.row_index, @row.worksheet.rows.index(@row))
end
def test_add_cell
c = @row.add_cell(1)
assert_equal(@row.cells.last, c)
@@ -109,9 +109,9 @@
def test_to_xml_string_with_custom_height
@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='true']").size, 1)
+ assert_equal(r_s_xml.xpath(".//row[@r=1][@ht=20][@customHeight=1]").size, 1)
end
end