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

Version Path
axlsx-1.0.18 test/doc_props/tc_app.rb
axlsx-1.0.17 test/doc_props/tc_app.rb
axlsx-1.0.16 test/doc_props/tc_app.rb
axlsx-1.0.15 test/doc_props/tc_app.rb
axlsx-1.0.14 test/doc_props/tc_app.rb
axlsx-1.0.12 test/doc_props/tc_app.rb
axlsx-1.0.11 test/doc_props/tc_app.rb
axlsx-1.0.10 test/doc_props/tc_app.rb
axlsx-1.0.10a test/doc_props/tc_app.rb
axlsx-1.0.9 test/doc_props/tc_app.rb
axlsx-1.0.8 test/doc_props/tc_app.rb
axlsx-1.0.7 test/doc_props/tc_app.rb
axlsx-1.0.7 test/doc_props/tc_app.rb~
axlsx-1.0.6 test/doc_props/tc_app.rb~
axlsx-1.0.6 test/doc_props/tc_app.rb
axlsx-1.0.5 test/doc_props/tc_app.rb
axlsx-1.0.5 test/doc_props/tc_app.rb~
axlsx-1.0.4 test/doc_props/tc_app.rb
axlsx-1.0.4 test/doc_props/tc_app.rb~
axlsx-1.0.3 test/doc_props/tc_app.rb