Skip to content

Commit 253bedf

Browse files
committedJan 13, 2021
fix: update test to handle behavior of latest Nokogiri
1 parent fbe0846 commit 253bedf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎test/integration/test_ad_hoc.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ def test_dont_remove_whitespace_between_tags
226226

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

233232
it "Loofah.scrub_document removes the comment" do

0 commit comments

Comments
 (0)
Please sign in to comment.