]> source.dussan.org Git - redmine.git/commitdiff
test: route: simplify /issues/bulk_edit test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jan 2012 00:41:44 +0000 (00:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jan 2012 00:41:44 +0000 (00:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8544 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/issues_test.rb

index cb727b7ac5e213ccf2849c02aa16d94d7e80f32f..a667b8c21b35542fab20ab25b4d6b10eb8ebef8e 100644 (file)
@@ -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' }