Ability to close projects (read-only) (#3640).

A new permission (Close/reopen project) is available to give non-admin users the ability to close their projects.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9883 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-06-25 17:49:35 +00:00
parent 5961a1e70d
commit ac56c0c99c
21 changed files with 213 additions and 42 deletions

View File

@@ -69,6 +69,14 @@ class RoutingProjectsTest < ActionController::IntegrationTest
{ :method => 'post', :path => "/projects/64/unarchive" },
{ :controller => 'projects', :action => 'unarchive', :id => '64' }
)
assert_routing(
{ :method => 'post', :path => "/projects/64/close" },
{ :controller => 'projects', :action => 'close', :id => '64' }
)
assert_routing(
{ :method => 'post', :path => "/projects/64/reopen" },
{ :controller => 'projects', :action => 'reopen', :id => '64' }
)
assert_routing(
{ :method => 'put', :path => "/projects/4223" },
{ :controller => 'projects', :action => 'update', :id => '4223' }