summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-12 17:22:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-10-12 17:22:52 +0000
commitad94777d9c2475ccbc9b933302b2fd427e944d87 (patch)
tree605bfd6c4c68839b9fbbf00ac6a1536ce857e361 /test/integration/routing
parent90e0d681dcd911ab597628213bda4bbb6ee3c5f7 (diff)
downloadredmine-ad94777d9c2475ccbc9b933302b2fd427e944d87.tar.gz
redmine-ad94777d9c2475ccbc9b933302b2fd427e944d87.zip
Expose roles details via REST API (#11502).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10620 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-rw-r--r--test/integration/routing/roles_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/routing/roles_test.rb b/test/integration/routing/roles_test.rb
index 0ec486a07..401ab0d48 100644
--- a/test/integration/routing/roles_test.rb
+++ b/test/integration/routing/roles_test.rb
@@ -28,6 +28,10 @@ class RoutingRolesTest < ActionController::IntegrationTest
{ :controller => 'roles', :action => 'index', :format => 'xml' }
)
assert_routing(
+ { :method => 'get', :path => "/roles/2.xml" },
+ { :controller => 'roles', :action => 'show', :id => '2', :format => 'xml' }
+ )
+ assert_routing(
{ :method => 'get', :path => "/roles/new" },
{ :controller => 'roles', :action => 'new' }
)