test: route: simplify test_issues_form_update

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8529 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-07 05:24:46 +00:00
parent bc3c151236
commit 61f7d37a9d
1 changed files with 6 additions and 8 deletions

View File

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