mirror of
https://github.com/redmine/redmine.git
synced 2025-12-22 16:30:38 +01:00
Adds a routing test for deleting attachment via the API.
git-svn-id: http://svn.redmine.org/redmine/trunk@15862 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -22,6 +22,7 @@ class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing
|
||||
def test_attachments
|
||||
should_route 'GET /attachments/1' => 'attachments#show', :id => '1'
|
||||
should_route 'PATCH /attachments/1' => 'attachments#update', :id => '1'
|
||||
should_route 'DELETE /attachments/1' => 'attachments#destroy', :id => '1'
|
||||
should_route 'POST /uploads' => 'attachments#upload'
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user