diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 11:00:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 11:00:29 +0000 |
commit | dd2a0554c610ce98ea4cfb351a699fcbd020481d (patch) | |
tree | 5d89ffe63c4ba9b754e812a48ef49c85680d452c /test | |
parent | d5502388946d64884c6b5c79ef093c5cb8e1aad6 (diff) | |
download | redmine-dd2a0554c610ce98ea4cfb351a699fcbd020481d.tar.gz redmine-dd2a0554c610ce98ea4cfb351a699fcbd020481d.zip |
Adds API routing tests for time entries.
git-svn-id: http://svn.redmine.org/redmine/trunk@13606 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/api_test/api_routing_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
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 |