diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 05:54:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-26 05:54:12 +0000 |
commit | a84baf92e7516d3c904c08e932e1626c632fc7dd (patch) | |
tree | fcdaaa924ef947cae053b1bb9e6009e9568de42b /test | |
parent | 431e98c999d77d473498459ecc453b0c8d1a97e1 (diff) | |
download | redmine-a84baf92e7516d3c904c08e932e1626c632fc7dd.tar.gz redmine-a84baf92e7516d3c904c08e932e1626c632fc7dd.zip |
test: route: simplify roles tests
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8371 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/routing/roles_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/integration/routing/roles_test.rb b/test/integration/routing/roles_test.rb index cd966636c..bdaa56f8e 100644 --- a/test/integration/routing/roles_test.rb +++ b/test/integration/routing/roles_test.rb @@ -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 |