test: route: add bulk edit time logs tests

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8422 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-29 11:55:51 +00:00
parent 50848da16c
commit 4ac7e94ad7
1 changed files with 18 additions and 0 deletions

View File

@ -200,4 +200,22 @@ class RoutingTimelogsTest < ActionController::IntegrationTest
:format => 'csv' }
)
end
def test_timelogs_bulk_edit
assert_routing(
{ :method => 'delete',
:path => "/time_entries/destroy" },
{ :controller => 'timelog', :action => 'destroy' }
)
assert_routing(
{ :method => 'post',
:path => "/time_entries/bulk_update" },
{ :controller => 'timelog', :action => 'bulk_update' }
)
assert_routing(
{ :method => 'get',
:path => "/time_entries/bulk_edit" },
{ :controller => 'timelog', :action => 'bulk_edit' }
)
end
end