summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2021-07-26 21:27:23 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2021-07-26 21:27:23 +0000
commitad9526ed2723d31f8ef318b1e46b02ceddcadeae (patch)
treeeebd8f0e959d300934030151d0535eb03cf638bf /test/functional
parentf1dc9d9b4dba82c35d08862e37833069fc97d46c (diff)
downloadredmine-ad9526ed2723d31f8ef318b1e46b02ceddcadeae.tar.gz
redmine-ad9526ed2723d31f8ef318b1e46b02ceddcadeae.zip
Redirect_to project_path after WikisController#destroy (#35610).
* Project settings 'wiki' tab is removed by r16917 & r17017. * This action is executed outside the project settings scope after r16916, thus we can better redirect to project_path. Patch by Mischa The Evil. git-svn-id: http://svn.redmine.org/redmine/trunk@21087 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/wikis_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 6eef2061a..be61c8277 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -40,7 +40,7 @@ class WikisControllerTest < Redmine::ControllerTest
@request.session[:user_id] = 1
post :destroy, :params => {:id => 1, :confirm => 1}
assert_redirected_to :controller => 'projects',
- :action => 'settings', :id => 'ecookbook', :tab => 'wiki'
+ :action => 'show', :id => 'ecookbook'
assert_nil Project.find(1).wiki
end