]> source.dussan.org Git - redmine.git/commitdiff
test: route: simplify test_issues_form_update
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Jan 2012 05:24:46 +0000 (05:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Jan 2012 05:24:46 +0000 (05:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8529 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/issues_test.rb

index 1a96176e1158e8aa98a737684a1556fc46848a85..b15c83d3f080adef2b553eceb3696de99664e9dd 100644 (file)
@@ -105,14 +105,12 @@ class RoutingIssuesTest < ActionController::IntegrationTest
   end
 
   def test_issues_form_update
-    assert_routing(
-        { :method => 'post', :path => "/projects/23/issues/new" },
-        { :controller => 'issues', :action => 'new', :project_id => '23' }
-      )
-    assert_routing(
-        { :method => 'put', :path => "/projects/23/issues/new" },
-        { :controller => 'issues', :action => 'new', :project_id => '23' }
-      )
+    ["post", "put"].each do |method|
+      assert_routing(
+          { :method => method, :path => "/projects/23/issues/new" },
+          { :controller => 'issues', :action => 'new', :project_id => '23' }
+        )
+    end
   end
 
   def test_issues_extra_actions