diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-08 00:41:44 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-08 00:41:44 +0000 |
commit | df5551a4e5404378d198939cc831f62ca0a65780 (patch) | |
tree | 30eb6859e646796c96dd12ebccddda3a0f346733 /test/integration/routing/issues_test.rb | |
parent | 5e27e32dae088ad3974a28d653b6d99830b37eed (diff) | |
download | redmine-df5551a4e5404378d198939cc831f62ca0a65780.tar.gz redmine-df5551a4e5404378d198939cc831f62ca0a65780.zip |
test: route: simplify /issues/bulk_edit test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8544 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/issues_test.rb')
-rw-r--r-- | test/integration/routing/issues_test.rb | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb index cb727b7ac..a667b8c21 100644 --- a/test/integration/routing/issues_test.rb +++ b/test/integration/routing/issues_test.rb @@ -119,15 +119,13 @@ class RoutingIssuesTest < ActionController::IntegrationTest { :controller => 'issues', :action => 'new', :project_id => '23', :copy_from => '64' } ) - assert_routing( - { :method => 'get', :path => "/issues/bulk_edit" }, - { :controller => 'issues', :action => 'bulk_edit' } - ) # For updating the bulk edit form - assert_routing( - { :method => 'post', :path => "/issues/bulk_edit" }, - { :controller => 'issues', :action => 'bulk_edit' } - ) + ["get", "post"].each do |method| + assert_routing( + { :method => method, :path => "/issues/bulk_edit" }, + { :controller => 'issues', :action => 'bulk_edit' } + ) + end assert_routing( { :method => 'post', :path => "/issues/bulk_update" }, { :controller => 'issues', :action => 'bulk_update' } |