summaryrefslogtreecommitdiffstats
path: root/test/functional/wiki_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-26 12:54:54 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-26 12:54:54 +0000
commitec7d1359301b28a506d3c9e9ad5785cf84d3fcd9 (patch)
tree3ebc58910568791073a3e955b996c8fd5313e193 /test/functional/wiki_controller_test.rb
parent60d066f943c68a348fee3a8350dc5ba88878b69c (diff)
downloadredmine-ec7d1359301b28a506d3c9e9ad5785cf84d3fcd9.tar.gz
redmine-ec7d1359301b28a506d3c9e9ad5785cf84d3fcd9.zip
Adds child_pages macro for wiki pages (#528).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1699 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r--test/functional/wiki_controller_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 06d8cacf2..bbfdc8e7f 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -32,10 +32,16 @@ class WikiControllerTest < Test::Unit::TestCase
end
def test_show_start_page
- get :index, :id => 1
+ get :index, :id => 'ecookbook'
assert_response :success
assert_template 'show'
assert_tag :tag => 'h1', :content => /CookBook documentation/
+
+ # child_pages macro
+ assert_tag :ul, :attributes => { :class => 'pages-hierarchy' },
+ :child => { :tag => 'li',
+ :child => { :tag => 'a', :attributes => { :href => '/wiki/ecookbook/Page_with_an_inline_image' },
+ :content => 'Page with an inline image' } }
end
def test_show_page_with_name