summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-25 17:49:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-06-25 17:49:35 +0000
commitac56c0c99ccd14c7229145fc22d6e9eb13ee0af0 (patch)
treef54401b77f7195a1795f4a189f9f9d35734c0a2b /test/integration/routing
parent5961a1e70d1efdfb5c4fd28c20dc8cc4d9a51bac (diff)
downloadredmine-ac56c0c99ccd14c7229145fc22d6e9eb13ee0af0.tar.gz
redmine-ac56c0c99ccd14c7229145fc22d6e9eb13ee0af0.zip
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
Diffstat (limited to 'test/integration/routing')
-rw-r--r--test/integration/routing/projects_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/routing/projects_test.rb b/test/integration/routing/projects_test.rb
index d53c0607c..2d4756f26 100644
--- a/test/integration/routing/projects_test.rb
+++ b/test/integration/routing/projects_test.rb
@@ -70,6 +70,14 @@ class RoutingProjectsTest < ActionController::IntegrationTest
{ :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' }
)