From ee5d3ab19bc336ebe902ea060dacfeeabb5014ff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 3 Dec 2011 15:32:46 +0000 Subject: [PATCH] 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 --- test/unit/lib/redmine/wiki_formatting/macros_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index e6f06489c..bd271446c 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb @@ -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 -- 2.39.5