From 3dd97a87c6707eb53410814a9594b6eebbc130ec Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 7 Jan 2012 08:16:22 +0000 Subject: [PATCH] test: route: add attachment delete method test git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8530 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/routing/attachments_test.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5