mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
Adds API routing tests for time entries.
git-svn-id: http://svn.redmine.org/redmine/trunk@13606 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user