blob: 31c87c417ac60d5482513d4622c8c8684dd755f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require 'tc_helper.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
|