Skip to content

Commit becbad0

Browse files
committed
test: handle variations in loofah whitespace
which changed in Loofah v2.9.0 Related to #111
1 parent 1e64885 commit becbad0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/sanitizer_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ def test_should_allow_custom_tags_with_custom_attributes
271271

272272
def test_scrub_style_if_style_attribute_option_is_passed
273273
input = '<p style="color: #000; background-image: url(http://www.ragingplatypus.com/i/cam-full.jpg);"></p>'
274-
assert_equal '<p style="color: #000;"></p>', safe_list_sanitize(input, attributes: %w(style))
274+
actual = safe_list_sanitize(input, attributes: %w(style))
275+
assert_includes(['<p style="color: #000;"></p>', '<p style="color:#000;"></p>'], actual)
275276
end
276277

277278
def test_should_raise_argument_error_if_tags_is_not_enumerable

0 commit comments

Comments
 (0)