Permalink
Browse files

Fix assertion to map the behaviour of the old sanitizer

  • Loading branch information...
rafaelfranca committed Aug 18, 2014
1 parent 8292cdb commit 8d0d051680eb274473ede3de96e1c0e905ce1497
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/test/template/sanitize_helper_test.rb
@@ -18,7 +18,7 @@ def test_sanitize_form
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

0 comments on commit 8d0d051

Please sign in to comment.