test: route: add attachment delete method test

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8530 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-07 08:16:22 +00:00
parent 61f7d37a9d
commit 3dd97a87c6
1 changed files with 4 additions and 0 deletions

View File

@ -45,5 +45,9 @@ class RoutingAttachmentsTest < ActionController::IntegrationTest
{ :controller => 'attachments', :action => 'download', :id => '1',
:filename => 'filename.ext' }
)
assert_routing(
{ :method => 'delete', :path => "/attachments/1" },
{ :controller => 'attachments', :action => 'destroy', :id => '1' }
)
end
end