diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-16 15:34:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-02-16 15:34:17 +0000 |
commit | 05823373724e472b6b7f9f172733aa16d132ced7 (patch) | |
tree | 041df1af3919b5ecfd9f84a9f86af5ce207c7370 /test | |
parent | 1c8cf4ef8338736ebcaa905f8932545a24e817c6 (diff) | |
download | redmine-05823373724e472b6b7f9f172733aa16d132ced7.tar.gz redmine-05823373724e472b6b7f9f172733aa16d132ced7.zip |
Added:
* the 'include' macro to include a wiki page
* macro escaping support (with exclamation mark)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1153 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 33509cfc0..4e617f699 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -120,6 +120,9 @@ class ApplicationHelperTest < HelperTestCase def test_macro_hello_world text = "{{hello_world}}" assert textilizable(text).match(/Hello world!/) + # escaping + text = "!{{hello_world}}" + assert_equal '<p>{{hello_world}}</p>', textilizable(text) end def test_date_format_default |