diff options
Diffstat (limited to 'test/unit/helpers/application_helper_test.rb')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 '<p>a *link*: <a href="http://www.example.net/">http://www.example.net/</a></p>', textilizable(text) + Setting.text_formatting = 'textile' + end + def test_date_format_default today = Date.today Setting.date_format = '' |