From 4f6739887fb89af25b354b971c145a2316372fa1 Mon Sep 17 00:00:00 2001 From: Timm Date: Wed, 10 Jul 2013 16:38:56 +0200 Subject: Changed the description of some pending tests. Changed the expected output of a script test. --- actionview/test/template/sanitizers_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'actionview/test/template') diff --git a/actionview/test/template/sanitizers_test.rb b/actionview/test/template/sanitizers_test.rb index fa94f7e621..c530da2996 100644 --- a/actionview/test/template/sanitizers_test.rb +++ b/actionview/test/template/sanitizers_test.rb @@ -27,8 +27,8 @@ class SanitizersTest < ActionController::TestCase # Actual: "Weia onclick='alert(document.cookie);'/>rdos" assert_equal("Weirdos", sanitizer.sanitize("Wei<a onclick='alert(document.cookie);'/>rdos")) - # Loofah strips newlines. Leaves comment text. - # Actual: "This is a test. it has a comment It no longer contains any HTML." + # Loofah strips newlines. + # Actual: "This is a test.It no longer contains any HTML." assert_equal( %{This is a test.\n\n\nIt no longer contains any HTML.\n}, sanitizer.sanitize( %{This is <b>a <a href="" target="_blank">test</a></b>.\n\n\n\n

It no longer contains any HTML.

\n})) @@ -57,6 +57,7 @@ class SanitizersTest < ActionController::TestCase assert_equal("This is a test.", sanitizer.sanitize("This is a test.")) + assert_equal "This has a here.", sanitizer.sanitize("This has a here.") assert_nothing_raised { sanitizer.sanitize("This is a frozen string with no tags".freeze) } end @@ -94,7 +95,7 @@ class SanitizersTest < ActionController::TestCase end def test_sanitize_script - assert_sanitized "a b cd e f", "a b cblah blah blahd e f" + assert_sanitized "a b cd e f", "a b cd e f" end def test_sanitize_js_handlers -- cgit v1.2.3