spec/schema_spec.rb in schematron-nokogiri-0.0.2 vs spec/schema_spec.rb in schematron-nokogiri-0.0.3

- old
+ new

@@ -61,7 +61,19 @@ results.length.should == 1 results.first[:rule_type].should == 'report' end + + it 'should log report rules in the results' do + schema_file = File.join 'spec', 'schema', 'open_peppol', 'SI-UBL-INV.SCH' + instance_file = File.join 'spec', 'instances', 'ubl', 'ubl_simple_invoicing.xml' + + schema_doc = Nokogiri::XML(File.open(schema_file)) + instance_doc = Nokogiri::XML(File.open(instance_file)) + + stron = SchematronNokogiri::Schema.new schema_doc + results = stron.validate instance_doc + + end end