##// END OF EJS Templates
test: route: add tests of timelogs report global scope format route and issues scope routes...
Toshi MARUYAMA -
r8395:05e897896a7e
parent child
Show More
@@ -183,6 +183,9 class RoutingTimelogsTest < ActionController::IntegrationTest
183 { :controller => 'timelog', :action => 'destroy', :id => '55',
183 { :controller => 'timelog', :action => 'destroy', :id => '55',
184 :issue_id => '234', :project_id => 'ecookbook' }
184 :issue_id => '234', :project_id => 'ecookbook' }
185 )
185 )
186 end
187
188 def test_timelogs_report
186 assert_routing(
189 assert_routing(
187 { :method => 'get',
190 { :method => 'get',
188 :path => "/time_entries/report" },
191 :path => "/time_entries/report" },
@@ -190,6 +193,22 class RoutingTimelogsTest < ActionController::IntegrationTest
190 )
193 )
191 assert_routing(
194 assert_routing(
192 { :method => 'get',
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 :path => "/projects/567/time_entries/report" },
212 :path => "/projects/567/time_entries/report" },
194 { :controller => 'timelog', :action => 'report', :project_id => '567' }
213 { :controller => 'timelog', :action => 'report', :project_id => '567' }
195 )
214 )
General Comments 0
You need to be logged in to leave comments. Login now