diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-08 13:51:18 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-08 13:51:18 +0000 |
commit | 5de545fd795a1e80a4e677ae2e4dc7175d38d81f (patch) | |
tree | 738cf812b38ecebf17bd96e681e289d19e14c28b /test/functional/wiki_controller_test.rb | |
parent | 2bc719e2c8deccaedc523ffa6ae2849321fc5cc3 (diff) | |
download | redmine-5de545fd795a1e80a4e677ae2e4dc7175d38d81f.tar.gz redmine-5de545fd795a1e80a4e677ae2e4dc7175d38d81f.zip |
Set the parent page when creating a new wiki page from the "Add page" link (#26043).
git-svn-id: http://svn.redmine.org/redmine/trunk@16774 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index dd28fb6b7..98d076cbd 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -208,6 +208,13 @@ class WikiControllerTest < Redmine::ControllerTest assert_equal 'window.location = "/projects/ecookbook/wiki/New_Page"', response.body end + def test_post_new_should_redirect_to_edit_with_parent + @request.session[:user_id] = 2 + + post :new, :params => {:project_id => 'ecookbook', :title => 'New_Page', :parent => 'Child_1'} + assert_redirected_to '/projects/ecookbook/wiki/New_Page?parent=Child_1' + end + def test_post_new_with_invalid_title_should_display_errors @request.session[:user_id] = 2 |