aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-26 01:00:10 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-26 01:00:10 +0000
commit1d564d97c5216210be03862d90fd7ea222afdc52 (patch)
treec42cec89598866572dc459d928a1b522f4d2a266 /actionpack/test/template
parenteacca8d7e6227d730918b829f022f2fb8592358c (diff)
downloadrails-1d564d97c5216210be03862d90fd7ea222afdc52.tar.gz
rails-1d564d97c5216210be03862d90fd7ea222afdc52.tar.bz2
rails-1d564d97c5216210be03862d90fd7ea222afdc52.zip
strip_tags passes through blank args such as nil or "". Closes #6702, references #2229.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5629 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/text_helper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/text_helper_test.rb b/actionpack/test/template/text_helper_test.rb
index 8825a24f14..bf008ae9df 100644
--- a/actionpack/test/template/text_helper_test.rb
+++ b/actionpack/test/template/text_helper_test.rb
@@ -321,6 +321,6 @@ class TextHelperTest < Test::Unit::TestCase
%{This is a test.\n\n\nIt no longer contains any HTML.\n}, strip_tags(
%{<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}))
assert_equal "This has a here.", strip_tags("This has a <!-- comment --> here.")
- [nil, '', ' '].each { |blank| assert_nil strip_tags(blank) }
+ [nil, '', ' '].each { |blank| assert_equal blank, strip_tags(blank) }
end
end