From dd2a0554c610ce98ea4cfb351a699fcbd020481d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Nov 2014 11:00:29 +0000 Subject: [PATCH] Adds API routing tests for time entries. git-svn-id: http://svn.redmine.org/redmine/trunk@13606 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/api_routing_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5