diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-18 16:04:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-18 16:04:45 -0300 |
commit | 8d0d051680eb274473ede3de96e1c0e905ce1497 (patch) | |
tree | 6c81ef2aa853f6f7a84634e7b9af316a988f7726 /actionview | |
parent | 8292cdb50e12e1d4702ba8249d7e8aff26d00f24 (diff) | |
download | rails-8d0d051680eb274473ede3de96e1c0e905ce1497.tar.gz rails-8d0d051680eb274473ede3de96e1c0e905ce1497.tar.bz2 rails-8d0d051680eb274473ede3de96e1c0e905ce1497.zip |
Fix assertion to map the behaviour of the old sanitizer
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/sanitize_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/test/template/sanitize_helper_test.rb b/actionview/test/template/sanitize_helper_test.rb index e4be21be2c..a27258a870 100644 --- a/actionview/test/template/sanitize_helper_test.rb +++ b/actionview/test/template/sanitize_helper_test.rb @@ -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 |