aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/sanitize_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/template/sanitize_helper_test.rb')
-rw-r--r--actionview/test/template/sanitize_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/template/sanitize_helper_test.rb b/actionview/test/template/sanitize_helper_test.rb
index e4be21be2c..efe846a7eb 100644
--- a/actionview/test/template/sanitize_helper_test.rb
+++ b/actionview/test/template/sanitize_helper_test.rb
@@ -29,6 +29,10 @@ class SanitizeHelperTest < ActionView::TestCase
assert_equal "", strip_tags("<script>")
end
+ def test_strip_tags_will_not_encode_special_characters
+ assert_equal "test\r\n\r\ntest", strip_tags("test\r\n\r\ntest")
+ end
+
def test_sanitize_is_marked_safe
assert sanitize("<html><script></script></html>").html_safe?
end