diff options
-rw-r--r-- | actionview/test/template/sanitizers_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/actionview/test/template/sanitizers_test.rb b/actionview/test/template/sanitizers_test.rb index bd5b25a305..dc511b6ec2 100644 --- a/actionview/test/template/sanitizers_test.rb +++ b/actionview/test/template/sanitizers_test.rb @@ -66,10 +66,6 @@ class SanitizersTest < ActionController::TestCase # Actual: "" assert_equal("<<<bad html", sanitizer.sanitize("<<<bad html")) - # Same as above - # Actual: "" - assert_equal("<<", sanitizer.sanitize("<<<bad html>")) - # Actual: "Weia onclick='alert(document.cookie);'/>rdos" assert_equal("Weirdos", sanitizer.sanitize("Wei<<a>a onclick='alert(document.cookie);'</a>/>rdos")) @@ -101,6 +97,8 @@ class SanitizersTest < ActionController::TestCase assert_equal("Dont touch me", sanitizer.sanitize("Dont touch me")) assert_equal("This is a test.", sanitizer.sanitize("<p>This <u>is<u> a <a href='test.html'><strong>test</strong></a>.</p>")) + assert_equal("", sanitizer.sanitize("<<<bad html>")) + assert_equal("This is a test.", sanitizer.sanitize("This is a test.")) assert_equal "This has a here.", sanitizer.sanitize("This has a <!-- comment --> here.") |