@@ -183,6 +183,9 class RoutingTimelogsTest < ActionController::IntegrationTest | |||
|
183 | 183 | { :controller => 'timelog', :action => 'destroy', :id => '55', |
|
184 | 184 | :issue_id => '234', :project_id => 'ecookbook' } |
|
185 | 185 | ) |
|
186 | end | |
|
187 | ||
|
188 | def test_timelogs_report | |
|
186 | 189 | assert_routing( |
|
187 | 190 | { :method => 'get', |
|
188 | 191 | :path => "/time_entries/report" }, |
@@ -190,6 +193,22 class RoutingTimelogsTest < ActionController::IntegrationTest | |||
|
190 | 193 | ) |
|
191 | 194 | assert_routing( |
|
192 | 195 | { :method => 'get', |
|
196 | :path => "/time_entries/report.csv" }, | |
|
197 | { :controller => 'timelog', :action => 'report', :format => 'csv' } | |
|
198 | ) | |
|
199 | assert_routing( | |
|
200 | { :method => 'get', | |
|
201 | :path => "/issues/234/time_entries/report" }, | |
|
202 | { :controller => 'timelog', :action => 'report', :issue_id => '234' } | |
|
203 | ) | |
|
204 | assert_routing( | |
|
205 | { :method => 'get', | |
|
206 | :path => "/issues/234/time_entries/report.csv" }, | |
|
207 | { :controller => 'timelog', :action => 'report', :issue_id => '234', | |
|
208 | :format => 'csv' } | |
|
209 | ) | |
|
210 | assert_routing( | |
|
211 | { :method => 'get', | |
|
193 | 212 | :path => "/projects/567/time_entries/report" }, |
|
194 | 213 | { :controller => 'timelog', :action => 'report', :project_id => '567' } |
|
195 | 214 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now