spec/item_in_spec.rb in cxml-ruby-0.5.0 vs spec/item_in_spec.rb in cxml-ruby-0.6.0

- old
+ new

@@ -33,7 +33,12 @@ it 'contains the required nodes' do item_in_output_data[:quantity].should_not be_empty item_in_output_data[:item_id].should_not be_empty item_in_output_data[:item_detail].should_not be_empty end + it 'validates against the DTD' do + next unless test_for_xmllint + + lint_doc_with_dtd(CXML::Document.new.from_xml(output_xml)).should be true + end end end