From a3b9a5aa5fe344cf33a47ccbf1d26a95fbe4e255 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 27 Oct 2008 11:08:29 +0000 Subject: Makes wiki text formatter pluggable. Original patch #2025 by Yuki Sonoda slightly edited. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1955 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/unit/helpers') diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index c3e8ca2d7..13fa262f1 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -350,6 +350,13 @@ EXPECTED assert textilizable(text).match(/Unknow project/) end + def test_default_formatter + Setting.text_formatting = 'unknown' + text = 'a *link*: http://www.example.net/' + assert_equal '

a *link*: http://www.example.net/

', textilizable(text) + Setting.text_formatting = 'textile' + end + def test_date_format_default today = Date.today Setting.date_format = '' -- cgit v1.2.3