diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-03 15:25:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-03 15:25:02 +0000 |
commit | 30bc5873e0b8f51209fa16976d6cb4c44041cb67 (patch) | |
tree | 6689e9ef922e08d59b71faf6c459e5d663aa6c79 /test | |
parent | e67afc88866ad6c85b8453c232e914ae55a62c76 (diff) | |
download | redmine-30bc5873e0b8f51209fa16976d6cb4c44041cb67.tar.gz redmine-30bc5873e0b8f51209fa16976d6cb4c44041cb67.zip |
Adds a test for macro_list wiki macro.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/macros_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index 8c470b877..704e74528 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -47,6 +47,11 @@ class Redmine::WikiFormatting::MacrosTest < ActionView::TestCase assert_equal '<p>{{hello_world}}</p>', textilizable(text) end + def test_macro_macro_list + text = "{{macro_list}}" + assert_match %r{<code>hello_world</code>}, textilizable(text) + end + def test_macro_include @project = Project.find(1) # include a page of the current project wiki |