diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 10:01:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-23 10:01:16 +0000 |
commit | 77626ef6fbf2df028ccf01f6a72e459bfc70e2ab (patch) | |
tree | 226c3c315e1f3d3162dfac14535821156c703532 /test/integration/routing/attachments_test.rb | |
parent | d086683b17665719aa352074288b90ba954e6db0 (diff) | |
download | redmine-77626ef6fbf2df028ccf01f6a72e459bfc70e2ab.tar.gz redmine-77626ef6fbf2df028ccf01f6a72e459bfc70e2ab.zip |
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
Diffstat (limited to 'test/integration/routing/attachments_test.rb')
-rw-r--r-- | test/integration/routing/attachments_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb index 852e4ef16..55ffe4eb9 100644 --- a/test/integration/routing/attachments_test.rb +++ b/test/integration/routing/attachments_test.rb @@ -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 |