Fix assertion to map the behaviour of the old sanitizer
This commit is contained in:
parent
8292cdb50e
commit
8d0d051680
|
@ -18,7 +18,7 @@ class SanitizeHelperTest < ActionView::TestCase
|
|||
|
||||
def test_should_sanitize_illegal_style_properties
|
||||
raw = %(display:block; position:absolute; left:0; top:0; width:100%; height:100%; z-index:1; background-color:black; background-image:url(http://www.ragingplatypus.com/i/cam-full.jpg); background-x:center; background-y:center; background-repeat:repeat;)
|
||||
expected = %(display: block; width: 100%; height: 100%; background-color: black; background-x: center; background-y: center;)
|
||||
expected = %(display: block; width: 100%; height: 100%; background-color: black; background-image: ; background-x: center; background-y: center;)
|
||||
assert_equal expected, sanitize_css(raw)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue