summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-23 17:03:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-09-23 17:03:51 +0000
commit2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9 (patch)
tree1605aa91f159c4a4a2247fd27a909dab7f8b0058 /test/unit
parent9131cdf6b91bb4585b341b54f6ddd6e7eb03d2e1 (diff)
downloadredmine-2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9.tar.gz
redmine-2e7e26fbb4c82a758bcc0b4a300bbc5ab05d88a9.zip
Fixes html escaping.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1901 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/helpers/application_helper_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index 35e26ebd4..14ca3cc64 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -190,6 +190,7 @@ class ApplicationHelperTest < HelperTestCase
to_test = {
"<pre>preformatted text</pre>" => "<pre>preformatted text</pre>",
"<notextile>no *textile* formatting</notextile>" => "no *textile* formatting",
+ "<notextile>this is <tag>a tag</tag></notextile>" => "this is &lt;tag&gt;a tag&lt;/tag&gt;"
}
to_test.each { |text, result| assert_equal result, textilizable(text) }
end