Sha256: ec186f9d2c216750ece504959098ae1f02dbbc46c4db817c674b0ee3f7ab8021
Contents?: true
Size: 442 Bytes
Versions: 25
Compression:
Stored size: 442 Bytes
Contents
require 'test/unit' require 'axlsx.rb' class TestApp < Test::Unit::TestCase def setup end def teardown end def test_valid_document schema = Nokogiri::XML::Schema(File.open(Axlsx::APP_XSD)) doc = Nokogiri::XML(Axlsx::App.new.to_xml) errors = [] schema.validate(doc).each do |error| errors << error end assert_equal(errors.size, 0, "app.xml invalid" + errors.map{ |e| e.message }.to_s) end end
Version data entries
25 entries across 18 versions & 1 rubygems