Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanong committed Oct 15, 2024
1 parent d524c8d commit bc2504d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/xml/test_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc2504d

Please sign in to comment.