From: Toshi MARUYAMA Date: Sat, 7 Jan 2012 08:16:22 +0000 (+0000) Subject: test: route: add attachment delete method test X-Git-Tag: 1.4.0~760 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3dd97a87c6707eb53410814a9594b6eebbc130ec;p=redmine.git test: route: add attachment delete method test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8530 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb index caf320bac..852e4ef16 100644 --- a/test/integration/routing/attachments_test.rb +++ b/test/integration/routing/attachments_test.rb @@ -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