summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-16 17:15:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-16 17:15:40 +0000
commit537be80be26c38d5384d588873d2682fd908ee62 (patch)
tree0f4a60940759a5ad8d86bebcd17b36649b02dfc8 /test/integration
parent5c2de4dfc95293a7965ff8cf980a310922fc4c05 (diff)
downloadredmine-537be80be26c38d5384d588873d2682fd908ee62.tar.gz
redmine-537be80be26c38d5384d588873d2682fd908ee62.zip
Adds a macro for inserting thumbnails in formatted text (#3510).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10013 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-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 ba4bb2c36..fc54dea41 100644
--- a/test/integration/routing/attachments_test.rb
+++ b/test/integration/routing/attachments_test.rb
@@ -50,6 +50,10 @@ class RoutingAttachmentsTest < ActionController::IntegrationTest
{ :controller => 'attachments', :action => 'thumbnail', :id => '1' }
)
assert_routing(
+ { :method => 'get', :path => "/attachments/thumbnail/1/200" },
+ { :controller => 'attachments', :action => 'thumbnail', :id => '1', :size => '200' }
+ )
+ assert_routing(
{ :method => 'delete', :path => "/attachments/1" },
{ :controller => 'attachments', :action => 'destroy', :id => '1' }
)