We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e64885 commit becbad0Copy full SHA for becbad0
test/sanitizer_test.rb
@@ -271,7 +271,8 @@ def test_should_allow_custom_tags_with_custom_attributes
271
272
def test_scrub_style_if_style_attribute_option_is_passed
273
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))
+ actual = safe_list_sanitize(input, attributes: %w(style))
275
+ assert_includes(['<p style="color: #000;"></p>', '<p style="color:#000;"></p>'], actual)
276
end
277
278
def test_should_raise_argument_error_if_tags_is_not_enumerable
0 commit comments