Skip to content

Commit

Permalink
skip test for libxml2 fix not applied in 2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 23, 2017
1 parent b7d7aea commit 92768e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/html/test_document_fragment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ def test_fragment_with_comment
end

def test_element_children_counts
if Nokogiri.uses_libxml? && Nokogiri::VERSION_INFO['libxml']['loaded'] <= "2.9.1"
skip "#elements doesn't work in 2.9.1, see 1793a5a for history"
end
doc = Nokogiri::HTML::DocumentFragment.parse(" <div> </div>\n ")
assert_equal 1, doc.element_children.count
end
Expand Down

0 comments on commit 92768e0

Please sign in to comment.