##// END OF EJS Templates
test: route: simplify test_issues_form_update...
Toshi MARUYAMA -
r8409:61f7d37a9dc0
parent child
Show More
@@ -105,14 +105,12 class RoutingIssuesTest < ActionController::IntegrationTest
105 end
105 end
106
106
107 def test_issues_form_update
107 def test_issues_form_update
108 assert_routing(
108 ["post", "put"].each do |method|
109 { :method => 'post', :path => "/projects/23/issues/new" },
109 assert_routing(
110 { :controller => 'issues', :action => 'new', :project_id => '23' }
110 { :method => method, :path => "/projects/23/issues/new" },
111 )
111 { :controller => 'issues', :action => 'new', :project_id => '23' }
112 assert_routing(
112 )
113 { :method => 'put', :path => "/projects/23/issues/new" },
113 end
114 { :controller => 'issues', :action => 'new', :project_id => '23' }
115 )
116 end
114 end
117
115
118 def test_issues_extra_actions
116 def test_issues_extra_actions
General Comments 0
You need to be logged in to leave comments. Login now