]> git.openstreetmap.org Git - rails.git/blob - test/functional/user_roles_controller_test.rb
e89230a7f58e86b5483df28b9074f2b9d58bbd6b
[rails.git] / test / functional / user_roles_controller_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class UserRolesControllerTest < ActionController::TestCase
4   ##
5   # test all routes which lead to this controller
6   def test_routes
7     assert_routing(
8       { :path => "/user/username/role/rolename/grant", :method => :post },
9       { :controller => "user_roles", :action => "grant", :display_name => "username", :role => "rolename" }
10     )
11     assert_routing(
12       { :path => "/user/username/role/rolename/revoke", :method => :post },
13       { :controller => "user_roles", :action => "revoke", :display_name => "username", :role => "rolename" }
14     )
15   end
16 end