From 3ac4c6262274cc0b9000973fea5f99a4545ab545 Mon Sep 17 00:00:00 2001 From: Timm <kaspth@gmail.com> Date: Wed, 31 Jul 2013 15:54:24 +0200 Subject: Added test case for non-comment. Removed pending assertion that passed. --- actionview/test/template/sanitizers_test.rb | 6 +++--- 1 file changed, 3 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 9d64a659b1..825a3a1b75 100644 --- a/actionview/test/template/sanitizers_test.rb +++ b/actionview/test/template/sanitizers_test.rb @@ -65,9 +65,9 @@ class SanitizersTest < ActionController::TestCase %{This is a test.\n\n\nIt no longer contains any HTML.\n}, sanitizer.sanitize( %{<title>This is <b>a <a href="" target="_blank">test</a></b>.</title>\n\n<!-- it has a comment -->\n\n<p>It no <b>longer <strong>contains <em>any <strike>HTML</strike></em>.</strong></b></p>\n})) - # Leaves comment text. - # Actual: "This has a comment here." - assert_equal "This has a here.", sanitizer.sanitize("This has a <!-- comment --> here.") + # Removes comment. + # Actual: "This is " + assert_equal "This is <-- not\n a comment here.", sanitizer.sanitize("This is <-- not\n a comment here.") # Leaves part of a CDATA section # Actual: "This has a ]]> here." -- cgit v1.2.3