mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Adds support for adding attachments to issues through the REST API (#8171).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8928 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -49,5 +49,13 @@ class RoutingAttachmentsTest < ActionController::IntegrationTest
|
||||
{ :method => 'delete', :path => "/attachments/1" },
|
||||
{ :controller => 'attachments', :action => 'destroy', :id => '1' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => '/uploads.xml' },
|
||||
{ :controller => 'attachments', :action => 'upload', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => '/uploads.json' },
|
||||
{ :controller => 'attachments', :action => 'upload', :format => 'json' }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user