Skip to content

Commit

Permalink
Merge pull request #2641 from sparklemotion/783-jruby-schema-validati…
Browse files Browse the repository at this point in the history
…on-pending-test

test: pending test for JRuby schema validation issue
  • Loading branch information
flavorjones authored Aug 30, 2022
2 parents 9b4a835 + 9509bbc commit 1f0e5b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/xml/test_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ def test_validate_non_document
assert_raises(ArgumentError) { @xsd.validate(string) }
end

def test_validate_empty_document
doc = Nokogiri::XML("")
assert(errors = @xsd.validate(doc))

pending_if("https://github.com/sparklemotion/nokogiri/issues/783", Nokogiri.jruby?) do
assert_equal(1, errors.length)
end
end

def test_valid?
valid_doc = Nokogiri::XML(File.read(PO_XML_FILE))

Expand Down

0 comments on commit 1f0e5b4

Please sign in to comment.