From 229092ffee94f4be2e2fad59d8085501885b13b8 Mon Sep 17 00:00:00 2001 From: Timm Date: Wed, 4 Sep 2013 20:43:00 +0200 Subject: Changed test expectation from '<<' to '' with string to sanitize '<<' in sanitizers_test. --- actionview/test/template/sanitizers_test.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'actionview/test/template') 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("<<")) - # Actual: "Weia onclick='alert(document.cookie);'/>rdos" assert_equal("Weirdos", sanitizer.sanitize("Wei<a onclick='alert(document.cookie);'/>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("

This is a test.

")) + assert_equal("", sanitizer.sanitize("<<")) + assert_equal("This is a test.", sanitizer.sanitize("This is a test.")) assert_equal "This has a here.", sanitizer.sanitize("This has a here.") -- cgit v1.2.3