]> source.dussan.org Git - redmine.git/commitdiff
Adds API routing tests for time entries.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Nov 2014 11:00:29 +0000 (11:00 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Nov 2014 11:00:29 +0000 (11:00 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13606 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/api_routing_test.rb

index 6fb591162763380075f68775b7dadb666bd22931..40cfe7a71c04b17028a386ff8bff3f0e5f385619 100644 (file)
@@ -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