diff options
author | Timm <kaspth@gmail.com> | 2013-09-04 20:43:00 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:12 +0200 |
commit | 229092ffee94f4be2e2fad59d8085501885b13b8 (patch) | |
tree | 93b6a095b51dc5d735aecd85753b133a1395e08f /actionview | |
parent | 4e97d7585a2f4788b9eed98c6cdaf4bb6f2cf5ce (diff) | |
download | rails-229092ffee94f4be2e2fad59d8085501885b13b8.tar.gz rails-229092ffee94f4be2e2fad59d8085501885b13b8.tar.bz2 rails-229092ffee94f4be2e2fad59d8085501885b13b8.zip |
Changed test expectation from '<<' to '' with string to sanitize '<<<bad html>' in sanitizers_test.
Diffstat (limited to 'actionview')
-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.") |