Sha256: dfbddeaa84c17732438347840e61369a6172c34a31d63ce3d718d519a4bae7c6
Contents?: true
Size: 435 Bytes
Versions: 18
Compression:
Stored size: 435 Bytes
Contents
require 'tc_helper.rb' class TestNumDataSource < Test::Unit::TestCase def setup @data_source = Axlsx::NumDataSource.new :data => ["1", "2", "3"] end def test_to_xml_string_strLit str = '<?xml version="1.0" encoding="UTF-8"?>' str << '<c:chartSpace xmlns:c="' << Axlsx::XML_NS_C << '">' str << @data_source.to_xml_string doc = Nokogiri::XML(str) assert_equal(doc.xpath("//c:val").size, 1) end end
Version data entries
18 entries across 18 versions & 2 rubygems