diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-08 20:31:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-08 20:31:36 +0000 |
commit | 0389c60129636969d3727b752625d95a559deff6 (patch) | |
tree | 1d540e9e28e4b3c0251d61d160c648d39f1951a3 /test/unit/helpers | |
parent | d77c1d2829f985c418442940c623ec6ec5d5457b (diff) | |
download | redmine-0389c60129636969d3727b752625d95a559deff6.tar.gz redmine-0389c60129636969d3727b752625d95a559deff6.zip |
Fixed: notextile tag has no effect.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1517 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 4f8ededd1..1e75dbd64 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -153,6 +153,14 @@ class ApplicationHelperTest < HelperTestCase to_test.each { |text, result| assert_equal result, textilizable(text) } end + def test_allowed_html_tags + to_test = { + "<pre>preformatted text</pre>" => "<pre>preformatted text</pre>", + "<notextile>no *textile* formatting</notextile>" => "no *textile* formatting", + } + to_test.each { |text, result| assert_equal result, textilizable(text) } + end + def test_wiki_links_in_tables to_test = {"|[[Page|Link title]]|[[Other Page|Other title]]|\n|Cell 21|[[Last page]]|" => '<tr><td><a href="/wiki/ecookbook/Page" class="wiki-page new">Link title</a></td>' + |