Skip to content

Commit

Permalink
test: handle variations in loofah whitespace
Browse files Browse the repository at this point in the history
which changed in Loofah v2.9.0

Related to #111
  • Loading branch information
flavorjones committed Apr 8, 2021
1 parent 1e64885 commit becbad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sanitizer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ def test_should_allow_custom_tags_with_custom_attributes

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

def test_should_raise_argument_error_if_tags_is_not_enumerable
Expand Down

0 comments on commit becbad0

Please sign in to comment.