summaryrefslogtreecommitdiffhomepage
path: root/test/drawing
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-06-09 12:18:07 +0900
committerRandy Morgan <[email protected]>2012-06-09 12:18:07 +0900
commite693d2b1933797e18cc1cdd3cba793630e8ecb25 (patch)
tree406615de04b6d02887c92721badc999d98bafd90 /test/drawing
parenta86b5072a17ec2eb78ade030bc5a58410c56c55f (diff)
downloadcaxlsx-e693d2b1933797e18cc1cdd3cba793630e8ecb25.tar.gz
caxlsx-e693d2b1933797e18cc1cdd3cba793630e8ecb25.zip
make sure jruby nokogiri parser gets is precious namespaces.
Diffstat (limited to 'test/drawing')
-rw-r--r--test/drawing/tc_title.rb17
1 files 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