diff --git a/test/xml/test_schema.rb b/test/xml/test_schema.rb index d4120b34d6e..008c4135361 100644 --- a/test/xml/test_schema.rb +++ b/test/xml/test_schema.rb @@ -175,6 +175,10 @@ class TestNokogiriXMLSchema < Nokogiri::TestCase assert(errors = xsd.validate(tempfile.path)) assert_equal(2, errors.length) + assert_equal( + ["/purchaseOrder/billTo/state", "/purchaseOrder/shipTo/state"], + errors.map(&:path).sort, + ) end it "validate_non_document" do