]> source.dussan.org Git - redmine.git/commitdiff
test: route: add bulk edit time logs tests
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 29 Dec 2011 11:55:51 +0000 (11:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 29 Dec 2011 11:55:51 +0000 (11:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8422 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/timelog_test.rb

index b5ce892e936e370ab21fcea8a375fddb199df4d8..d4e2bc7035c34bbabc3b75ec40e08ac59b999d2e 100644 (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