aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/sanitize_helper_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-08-09 18:15:59 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2012-08-09 18:15:59 -0300
commit7987e7419a75b5677841c4f215791a73083a154a (patch)
tree7164002ad5b52dd5a52114cfd9a4a2f7c5fc7049 /actionpack/test/template/sanitize_helper_test.rb
parent0f9a6a7c80a2beeaace875d8a9d89a164811d729 (diff)
parent64146cf7babe35fd962576b699fa0deb4cfe0d70 (diff)
downloadrails-7987e7419a75b5677841c4f215791a73083a154a.tar.gz
rails-7987e7419a75b5677841c4f215791a73083a154a.tar.bz2
rails-7987e7419a75b5677841c4f215791a73083a154a.zip
Merge branch '3-2-8' into 3-2-stable
Diffstat (limited to 'actionpack/test/template/sanitize_helper_test.rb')
-rw-r--r--actionpack/test/template/sanitize_helper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/template/sanitize_helper_test.rb b/actionpack/test/template/sanitize_helper_test.rb
index 222d4dbf4c..cc93b53ea6 100644
--- a/actionpack/test/template/sanitize_helper_test.rb
+++ b/actionpack/test/template/sanitize_helper_test.rb
@@ -42,9 +42,9 @@ class SanitizeHelperTest < ActionView::TestCase
[nil, '', ' '].each do |blank|
stripped = strip_tags(blank)
assert_equal blank, stripped
- assert stripped.html_safe? unless blank.nil?
end
- assert strip_tags("<script>").html_safe?
+ assert_equal "", strip_tags("<script>")
+ assert_equal "something &lt;img onerror=alert(1337)", ERB::Util.html_escape(strip_tags("something <img onerror=alert(1337)"))
end
def test_sanitize_is_marked_safe