@@ -119,15 +119,13 class RoutingIssuesTest < ActionController::IntegrationTest | |||||
119 | { :controller => 'issues', :action => 'new', :project_id => '23', |
|
119 | { :controller => 'issues', :action => 'new', :project_id => '23', | |
120 | :copy_from => '64' } |
|
120 | :copy_from => '64' } | |
121 | ) |
|
121 | ) | |
122 | assert_routing( |
|
|||
123 | { :method => 'get', :path => "/issues/bulk_edit" }, |
|
|||
124 | { :controller => 'issues', :action => 'bulk_edit' } |
|
|||
125 | ) |
|
|||
126 | # For updating the bulk edit form |
|
122 | # For updating the bulk edit form | |
127 | assert_routing( |
|
123 | ["get", "post"].each do |method| | |
128 | { :method => 'post', :path => "/issues/bulk_edit" }, |
|
124 | assert_routing( | |
129 | { :controller => 'issues', :action => 'bulk_edit' } |
|
125 | { :method => method, :path => "/issues/bulk_edit" }, | |
130 | ) |
|
126 | { :controller => 'issues', :action => 'bulk_edit' } | |
|
127 | ) | |||
|
128 | end | |||
131 | assert_routing( |
|
129 | assert_routing( | |
132 | { :method => 'post', :path => "/issues/bulk_update" }, |
|
130 | { :method => 'post', :path => "/issues/bulk_update" }, | |
133 | { :controller => 'issues', :action => 'bulk_update' } |
|
131 | { :controller => 'issues', :action => 'bulk_update' } |
General Comments 0
You need to be logged in to leave comments.
Login now