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
This commit is contained in:
Jean-Philippe Lang
2017-07-26 17:07:43 +00:00
parent 33bf6dddf3
commit 449d5e6d34
6 changed files with 7 additions and 31 deletions

View File

@@ -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