]> source.dussan.org Git - redmine.git/commitdiff
test: route: add attachment delete method test
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Jan 2012 08:16:22 +0000 (08:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Jan 2012 08:16:22 +0000 (08:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8530 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/attachments_test.rb

index caf320baca31acbec58ffecc5d22d66c4ecf3b84..852e4ef163c2cc1304627122f65c460ef3a6ad3c 100644 (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