test: route: simplify roles tests
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8371 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
431e98c999
commit
a84baf92e7
@ -43,13 +43,11 @@ class RoutingRolesTest < ActionController::IntegrationTest
|
||||
{ :method => 'delete', :path => "/roles/2" },
|
||||
{ :controller => 'roles', :action => 'destroy', :id => '2' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/roles/permissions" },
|
||||
{ :controller => 'roles', :action => 'permissions' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/roles/permissions" },
|
||||
{ :controller => 'roles', :action => 'permissions' }
|
||||
)
|
||||
["get", "post"].each do |method|
|
||||
assert_routing(
|
||||
{ :method => method, :path => "/roles/permissions" },
|
||||
{ :controller => 'roles', :action => 'permissions' }
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user