From bc2504d54e712930403145a066f676247b6178a8 Mon Sep 17 00:00:00 2001 From: Ryan Ong Date: Tue, 15 Oct 2024 16:50:44 -0400 Subject: [PATCH] add failing test --- test/xml/test_schema.rb | 4 ++++ 1 file changed, 4 insertions(+) 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