Skip to content

Commit

Permalink
fix: update test to handle behavior of latest Nokogiri
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 13, 2021
1 parent fbe0846 commit 253bedf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/test_ad_hoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ def test_dont_remove_whitespace_between_tags

it "Loofah.document removes the comment" do
sanitized = Loofah.document(html)
sanitized_html = sanitized.to_html
refute_match(/--/, sanitized_html)
refute(sanitized.children.any? { |node| node.comment? } )
end

it "Loofah.scrub_document removes the comment" do
Expand Down

0 comments on commit 253bedf

Please sign in to comment.