From: Jean-Philippe Lang Date: Sun, 16 Nov 2014 11:00:29 +0000 (+0000) Subject: Adds API routing tests for time entries. X-Git-Tag: 3.0.0~367 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd2a0554c610ce98ea4cfb351a699fcbd020481d;p=redmine.git Adds API routing tests for time entries. git-svn-id: http://svn.redmine.org/redmine/trunk@13606 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb index 6fb591162..40cfe7a71 100644 --- a/test/integration/api_test/api_routing_test.rb +++ b/test/integration/api_test/api_routing_test.rb @@ -108,6 +108,15 @@ class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing should_route 'GET /roles/2' => 'roles#show', :id => '2' end + def test_time_entries + should_route 'GET /time_entries' => 'timelog#index' + should_route 'POST /time_entries' => 'timelog#create' + + should_route 'GET /time_entries/1' => 'timelog#show', :id => '1' + should_route 'PUT /time_entries/1' => 'timelog#update', :id => '1' + should_route 'DELETE /time_entries/1' => 'timelog#destroy', :id => '1' + end + def test_trackers should_route 'GET /trackers' => 'trackers#index' end