File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,8 @@ def test_should_allow_custom_tags_with_custom_attributes
271
271
272
272
def test_scrub_style_if_style_attribute_option_is_passed
273
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 ) )
274
+ actual = safe_list_sanitize ( input , attributes : %w( style ) )
275
+ assert_includes ( [ '<p style="color: #000;"></p>' , '<p style="color:#000;"></p>' ] , actual )
275
276
end
276
277
277
278
def test_should_raise_argument_error_if_tags_is_not_enumerable
@@ -413,7 +414,7 @@ def test_should_sanitize_img_dynsrc_lowsrc
413
414
end
414
415
415
416
def test_should_sanitize_div_background_image_unicode_encoded
416
- raw = %(background-image:\007 5 \007 2 \006 C \002 8' \006 a \006 1 \007 6 \006 1 \007 3 \006 3 \007 2 \006 9 \007 0 \007 4 \003 a \006 1 \006 c \006 5 \007 2 \007 4 \002 8.1027 \005 8.1053 \005 3 \002 7 \002 9' \002 9 )
417
+ raw = %(background-image:\u0075 \u0072 \u006C \u0028 \u0027 \u006a \u0061 \u0076 \u0061 \u0073 \u0063 \u0072 \u0069 \u0070 \u0074 \u003a \u0061 \u006c \u0065 \u0072 \u0074 \u0028 \u0031 \u0032 \u0033 \u0034 \u0029 \u0027 \u0029 )
417
418
assert_equal '' , sanitize_css ( raw )
418
419
end
419
420
You can’t perform that action at this time.
0 commit comments