test: route: add tests of timelogs report global scope format route and issues scope routes
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8515 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
077ddfbea3
commit
05e897896a
|
@ -183,11 +183,30 @@ 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" },
|
||||
{ :controller => 'timelog', :action => 'report' }
|
||||
)
|
||||
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" },
|
||||
|
|
Loading…
Reference in New Issue