summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-26 17:07:43 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-26 17:07:43 +0000
commit449d5e6d34d24c77225fa6f2f70933eea4c11840 (patch)
tree066599a7308f1596c20de745988ee4af9565b6c1 /test/functional/projects_controller_test.rb
parent33bf6dddf3a78b1ab12bbac3f3828c407c9ccd44 (diff)
downloadredmine-449d5e6d34d24c77225fa6f2f70933eea4c11840.tar.gz
redmine-449d5e6d34d24c77225fa6f2f70933eea4c11840.zip
Removes the Modules tab in project settings (#26488).
Modules can now be select on the first tab, just like when creating a project. git-svn-id: http://svn.redmine.org/redmine/trunk@16892 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb10
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