From 4ac7e94ad7ccb90785537d518a0cb0a54b8575a0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 29 Dec 2011 11:55:51 +0000 Subject: [PATCH] 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 --- test/integration/routing/timelog_test.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb index b5ce892e9..d4e2bc703 100644 --- a/test/integration/routing/timelog_test.rb +++ b/test/integration/routing/timelog_test.rb @@ -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