diff options
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 |