aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-07-31 15:54:24 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:03:58 +0200
commit3ac4c6262274cc0b9000973fea5f99a4545ab545 (patch)
tree1f626556f99e5c2194adb296bb092ffbc92f0d5e
parent4f19614e55bfbb756f0782225a0d186a58331271 (diff)
downloadrails-3ac4c6262274cc0b9000973fea5f99a4545ab545.tar.gz
rails-3ac4c6262274cc0b9000973fea5f99a4545ab545.tar.bz2
rails-3ac4c6262274cc0b9000973fea5f99a4545ab545.zip
Added test case for non-comment. Removed pending assertion that passed.
-rw-r--r--actionview/test/template/sanitizers_test.rb6
1 files changed, 3 insertions, 3 deletions
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 ]]&gt; here."