diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/projects_controller_test.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index f34627e5b..49c5ac54f 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -730,15 +730,17 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_match /Successful update/, flash[:notice] end - def test_modules + def test_update_modules @request.session[:user_id] = 2 Project.find(1).enabled_module_names = ['issue_tracking', 'news'] - post :modules, :params => { + post :update, :params => { :id => 1, - :enabled_module_names => ['issue_tracking', 'repository', 'documents'] + :project => { + :enabled_module_names => ['issue_tracking', 'repository', 'documents'] + } } - assert_redirected_to '/projects/ecookbook/settings/modules' + assert_redirected_to '/projects/ecookbook/settings' assert_equal ['documents', 'issue_tracking', 'repository'], Project.find(1).enabled_module_names.sort end |