Adds a test for child_pages macro failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8055 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-12-03 15:32:46 +00:00
parent 036c3a56b4
commit ee5d3ab19b
1 changed files with 4 additions and 0 deletions

View File

@ -114,4 +114,8 @@ class Redmine::WikiFormatting::MacrosTest < ActionView::TestCase
@project = Project.find(2)
assert_equal expected, textilizable("{{child_pages(ecookbook:Another_page, parent=1)}}", :object => WikiPage.find(1).content)
end
def test_macro_child_pages_without_wiki_page_should_fail
assert_match /can be called from wiki pages only/, textilizable("{{child_pages}}")
end
end