mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user