* 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
This commit is contained in:
Jean-Philippe Lang
2008-02-16 15:34:17 +00:00
parent 1c8cf4ef83
commit 0582337372
3 changed files with 36 additions and 9 deletions
@@ -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