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
This commit is contained in:
Jean-Philippe Lang
2012-07-16 17:15:40 +00:00
parent 5c2de4dfc9
commit 537be80be2
7 changed files with 79 additions and 28 deletions

View File

@@ -49,6 +49,10 @@ class RoutingAttachmentsTest < ActionController::IntegrationTest
{ :method => 'get', :path => "/attachments/thumbnail/1" },
{ :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' }