diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb index d4e2bc7..948b415 100644 --- a/test/integration/routing/timelog_test.rb +++ b/test/integration/routing/timelog_test.rb @@ -183,6 +183,9 @@ class RoutingTimelogsTest < ActionController::IntegrationTest { :controller => 'timelog', :action => 'destroy', :id => '55', :issue_id => '234', :project_id => 'ecookbook' } ) + end + + def test_timelogs_report assert_routing( { :method => 'get', :path => "/time_entries/report" }, @@ -190,6 +193,22 @@ class RoutingTimelogsTest < ActionController::IntegrationTest ) assert_routing( { :method => 'get', + :path => "/time_entries/report.csv" }, + { :controller => 'timelog', :action => 'report', :format => 'csv' } + ) + assert_routing( + { :method => 'get', + :path => "/issues/234/time_entries/report" }, + { :controller => 'timelog', :action => 'report', :issue_id => '234' } + ) + assert_routing( + { :method => 'get', + :path => "/issues/234/time_entries/report.csv" }, + { :controller => 'timelog', :action => 'report', :issue_id => '234', + :format => 'csv' } + ) + assert_routing( + { :method => 'get', :path => "/projects/567/time_entries/report" }, { :controller => 'timelog', :action => 'report', :project_id => '567' } )