From e693d2b1933797e18cc1cdd3cba793630e8ecb25 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sat, 9 Jun 2012 12:18:07 +0900 Subject: make sure jruby nokogiri parser gets is precious namespaces. --- test/drawing/tc_title.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/drawing/tc_title.rb b/test/drawing/tc_title.rb index 8d793d16..84345150 100644 --- a/test/drawing/tc_title.rb +++ b/test/drawing/tc_title.rb @@ -33,18 +33,17 @@ class TestTitle < Test::Unit::TestCase end def test_to_xml_string_text - @title.text = 'foo' - doc = Nokogiri::XML(@title.to_xml_string) - assert_equal(1, doc.xpath('//rich').size) - assert_equal(1, doc.xpath('//t[text()="foo"]').size) + @chart.title.text = 'foo' + doc = Nokogiri::XML(@chart.to_xml_string) + assert_equal(1, doc.xpath('//c:rich').size) + assert_equal(1, doc.xpath("//a:t[text()='foo']").size) end def test_to_xml_string_cell - @title.cell = @row.cells.first - doc = Nokogiri::XML(@title.to_xml_string) - assert_equal(1, doc.xpath('//strCache').size) - assert_equal(1, doc.xpath('//v[text()="one"]').size) + @chart.title.cell = @row.cells.first + doc = Nokogiri::XML(@chart.to_xml_string) + assert_equal(1, doc.xpath('//c:strCache').size) + assert_equal(1, doc.xpath('//c:v[text()="one"]').size) end - end -- cgit v1.2.3