Adds a simple API for listing roles (#9725).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8799 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-06 10:06:32 +00:00
parent c5665276b7
commit be246de161
4 changed files with 93 additions and 4 deletions

View File

@@ -23,6 +23,10 @@ class RoutingRolesTest < ActionController::IntegrationTest
{ :method => 'get', :path => "/roles" },
{ :controller => 'roles', :action => 'index' }
)
assert_routing(
{ :method => 'get', :path => "/roles.xml" },
{ :controller => 'roles', :action => 'index', :format => 'xml' }
)
assert_routing(
{ :method => 'get', :path => "/roles/new" },
{ :controller => 'roles', :action => 'new' }