summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-07 08:16:22 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-07 08:16:22 +0000
commit3dd97a87c6707eb53410814a9594b6eebbc130ec (patch)
tree0eba3decef0cf6db150257320981d0286f088a18 /test/integration/routing
parent61f7d37a9dc071693118a4dda1cac2587cebc58a (diff)
downloadredmine-3dd97a87c6707eb53410814a9594b6eebbc130ec.tar.gz
redmine-3dd97a87c6707eb53410814a9594b6eebbc130ec.zip
test: route: add attachment delete method test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8530 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-rw-r--r--test/integration/routing/attachments_test.rb4
1 files changed, 4 insertions, 0 deletions
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