mirror of
https://github.com/redmine/redmine.git
synced 2026-01-10 09:33:04 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user