Sha256: 5cc0a42ef6f44f65aa31d4c05f6d12cc29ce1e5f65b68f6b4e17ac9f6b7cbd4c

Contents?: true

Size: 387 Bytes

Versions: 6

Compression:

Stored size: 387 Bytes

Contents

require 'tc_helper.rb'

class TestApp < Test::Unit::TestCase
  def test_valid_document
    schema = Nokogiri::XML::Schema(File.open(Axlsx::APP_XSD))
    doc = Nokogiri::XML(Axlsx::App.new.to_xml_string)
    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

6 entries across 6 versions & 1 rubygems

Version Path
axlsx-1.1.5 test/doc_props/tc_app.rb
axlsx-1.1.4 test/doc_props/tc_app.rb
axlsx-1.1.3 test/doc_props/tc_app.rb
axlsx-1.1.2 test/doc_props/tc_app.rb
axlsx-1.1.1 test/doc_props/tc_app.rb
axlsx-1.1.0 test/doc_props/tc_app.rb