1 require File.dirname(__FILE__) + '/../test_helper'
3 class UserRolesControllerTest < ActionController::TestCase
5 # test all routes which lead to this controller
8 { :path => "/user/username/role/rolename/grant", :method => :get },
9 { :controller => "user_roles", :action => "grant", :display_name => "username", :role => "rolename" }
12 { :path => "/user/username/role/rolename/grant", :method => :post },
13 { :controller => "user_roles", :action => "grant", :display_name => "username", :role => "rolename" }
16 { :path => "/user/username/role/rolename/revoke", :method => :get },
17 { :controller => "user_roles", :action => "revoke", :display_name => "username", :role => "rolename" }
20 { :path => "/user/username/role/rolename/revoke", :method => :post },
21 { :controller => "user_roles", :action => "revoke", :display_name => "username", :role => "rolename" }