diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-30 07:38:48 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-30 07:38:48 +0000 |
commit | e930ee8e98acbe14438c9c314077a9f7ee198269 (patch) | |
tree | 2d2cac223b4dd0194c1930f30ac1f3809662cb96 /test/functional/wiki_controller_test.rb | |
parent | 6bc9f3d10dfc22cf7dd1f0e1d0226d8dbec689e7 (diff) | |
download | redmine-e930ee8e98acbe14438c9c314077a9f7ee198269.tar.gz redmine-e930ee8e98acbe14438c9c314077a9f7ee198269.zip |
Adds a checkbox to set a page as the wiki start page (#26579).
git-svn-id: http://svn.redmine.org/redmine/trunk@16915 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 7260d9094..314d46385 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -843,6 +843,25 @@ class WikiControllerTest < Redmine::ControllerTest assert_equal project.wiki.id, page.wiki_id end + def test_rename_as_start_page + @request.session[:user_id] = 2 + + post :rename, :params => { + :project_id => 'ecookbook', + :id => 'Another_page', + :wiki_page => { + :wiki_id => '1', + :title => 'Another_page', + :redirect_existing_links => '1', + :is_start_page => '1' + } + } + assert_redirected_to '/projects/ecookbook/wiki/Another_page' + + wiki = Wiki.find(1) + assert_equal 'Another_page', wiki.start_page + end + def test_destroy_a_page_without_children_should_not_ask_confirmation @request.session[:user_id] = 2 delete :destroy, :params => {:project_id => 1, :id => 'Child_2'} |