Sha256: 6b06ebebd30fe18bac04c9022d380195cc3549ebb385e5873e2b75ed7bf190a0

Contents?: true

Size: 506 Bytes

Versions: 34

Compression:

Stored size: 506 Bytes

Contents

require 'tc_helper.rb'

class TestStrData < Test::Unit::TestCase

  def setup
    @str_data = Axlsx::StrData.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 << @str_data.to_xml_string
    doc = Nokogiri::XML(str)
    assert_equal(doc.xpath("//c:strLit/c:ptCount[@val=3]").size, 1)
    assert_equal(doc.xpath("//c:strLit/c:pt/c:v[text()='1']").size, 1)
  end

end

Version data entries

34 entries across 34 versions & 6 rubygems

Version Path
caxlsx-3.1.1 test/drawing/tc_str_data.rb
caxlsx-3.1.0 test/drawing/tc_str_data.rb
bonio-axlsx-2.2.3 test/drawing/tc_str_data.rb
caxlsx-3.0.4 test/drawing/tc_str_data.rb
caxlsx-3.0.3 test/drawing/tc_str_data.rb
caxlsx-3.0.2 test/drawing/tc_str_data.rb
caxlsx-2.0.2 test/drawing/tc_str_data.rb
caxlsx-3.0.1 test/drawing/tc_str_data.rb
caxlsx-3.0.0 test/drawing/tc_str_data.rb
axlsx-alt-3.0.1 test/drawing/tc_str_data.rb
axlsx-alt-3.0.0 test/drawing/tc_str_data.rb
axlsx-3.0.0.pre test/drawing/tc_str_data.rb
bonio-axlsx-2.2.2 test/drawing/tc_str_data.rb
bonio-axlsx-2.2.1 test/drawing/tc_str_data.rb
dg-axlsx-2.1.0 test/drawing/tc_str_data.rb
axlsx-2.1.0.pre test/drawing/tc_str_data.rb
l_axlsx-2.0.1 test/drawing/tc_str_data.rb
axlsx-2.0.1 test/drawing/tc_str_data.rb
axlsx-2.0.0 test/drawing/tc_str_data.rb
axlsx-1.3.6 test/drawing/tc_str_data.rb