Sha256: efcd81f41e5373fbf20e950b77ff77b5f82f8fc24650086001ec8825858c22c1
Contents?: true
Size: 618 Bytes
Versions: 19
Compression:
Stored size: 618 Bytes
Contents
require 'tc_helper.rb' class TestRelationships < Test::Unit::TestCase def test_valid_document @rels = Axlsx::Relationships.new schema = Nokogiri::XML::Schema(File.open(Axlsx::RELS_XSD)) doc = Nokogiri::XML(@rels.to_xml_string) errors = [] schema.validate(doc).each do |error| puts error.message errors << error end @rels << Axlsx::Relationship.new(Axlsx::WORKSHEET_R, "bar") doc = Nokogiri::XML(@rels.to_xml_string) errors = [] schema.validate(doc).each do |error| puts error.message errors << error end assert(errors.size == 0) end end
Version data entries
19 entries across 19 versions & 1 rubygems