Sha256: 3ace0b7be38016fc331e1536499e9ff86825d9a1668e43ae834ca6dc84c5efd1
Contents?: true
Size: 536 Bytes
Versions: 24
Compression:
Stored size: 536 Bytes
Contents
require 'tc_helper.rb' class TestOverride < Test::Unit::TestCase def test_content_type_restriction assert_raise(ArgumentError, "requires known content type") { Axlsx::Override.new :ContentType=>"asdf" } end def test_to_xml type = Axlsx::Override.new :PartName=>"somechart.xml", :ContentType=>Axlsx::CHART_CT doc = Nokogiri::XML(type.to_xml_string) assert_equal(doc.xpath("Override[@ContentType='#{Axlsx::CHART_CT}']").size, 1) assert_equal(doc.xpath("Override[@PartName='somechart.xml']").size, 1) end end
Version data entries
24 entries across 24 versions & 6 rubygems