diff options
| author | Randy Morgan <[email protected]> | 2013-08-29 22:41:32 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2013-08-29 22:41:32 +0900 |
| commit | e51884a3f509d14b65223acbd899dbad32a7be61 (patch) | |
| tree | e05a809ef0f3df5ee7e97260cc5764851c83ff64 /test/workbook/worksheet/tc_break.rb | |
| parent | dd1f24a10f6842e8c4e6254eef586c383791cd03 (diff) | |
| download | caxlsx-e51884a3f509d14b65223acbd899dbad32a7be61.tar.gz caxlsx-e51884a3f509d14b65223acbd899dbad32a7be61.zip | |
dont rely on jruby 1.9 to produce an ordered hash
Diffstat (limited to 'test/workbook/worksheet/tc_break.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_break.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_break.rb b/test/workbook/worksheet/tc_break.rb index c0ad69ca..fb1e918c 100644 --- a/test/workbook/worksheet/tc_break.rb +++ b/test/workbook/worksheet/tc_break.rb @@ -45,6 +45,7 @@ class TestBreak < Test::Unit::TestCase end def test_to_xml_string - assert_equal("<brk id=\"1\" min=\"1\" max=\"10\" man=\"true\" pt=\"false\" ></brk>", @break.to_xml_string) + doc = Nokogiri::XML(@break.to_xml_string) + assert_equal(doc.xpath('//brk[@id="1"][@min="1"][@max="10"][@pt="false"][@man="true"]').size, 1) end end |
