summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/issues_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-07 05:24:46 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-07 05:24:46 +0000
commit61f7d37a9dc071693118a4dda1cac2587cebc58a (patch)
tree40ca852056563f30dc196add375f8838a1e36563 /test/integration/routing/issues_test.rb
parentbc3c151236a1b2e96d13b467313c5bf6e0eff540 (diff)
downloadredmine-61f7d37a9dc071693118a4dda1cac2587cebc58a.tar.gz
redmine-61f7d37a9dc071693118a4dda1cac2587cebc58a.zip
test: route: simplify test_issues_form_update
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8529 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/issues_test.rb')
-rw-r--r--test/integration/routing/issues_test.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb
index 1a96176e1..b15c83d3f 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -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