test/rels/tc_relationships.rb in axlsx-1.0.10a vs test/rels/tc_relationships.rb in axlsx-1.0.10
- old
+ new
@@ -1,16 +1,12 @@
require 'test/unit'
require 'axlsx.rb'
class TestRelationships < Test::Unit::TestCase
- def setup
- @rels = Axlsx::Relationships.new
- end
-
- def teardown
- end
+
def test_valid_document
+ @rels = Axlsx::Relationships.new
schema = Nokogiri::XML::Schema(File.open(Axlsx::RELS_XSD))
doc = Nokogiri::XML(@rels.to_xml)
errors = []
schema.validate(doc).each do |error|
puts error.message