From 0389c60129636969d3727b752625d95a559deff6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 8 Jun 2008 20:31:36 +0000 Subject: Fixed: notextile tag has no effect. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1517 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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 = { + "
preformatted text
" => "
preformatted text
", + "no *textile* formatting" => "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]]|" => 'Link title' + -- cgit v1.2.3