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:
parent
036c3a56b4
commit
ee5d3ab19b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue