Adds a named route for thumbnails and use route helper in #thumbnail_tag.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11188 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1077,6 +1077,12 @@ RAW
|
||||
link_to_attachment(a, :only_path => false)
|
||||
end
|
||||
|
||||
def test_thumbnail_tag
|
||||
a = Attachment.find(3)
|
||||
assert_equal '<a href="/attachments/3/logo.gif" title="logo.gif"><img alt="3" src="/attachments/thumbnail/3" /></a>',
|
||||
thumbnail_tag(a)
|
||||
end
|
||||
|
||||
def test_link_to_project
|
||||
project = Project.find(1)
|
||||
assert_equal %(<a href="/projects/ecookbook">eCookbook</a>),
|
||||
|
||||
Reference in New Issue
Block a user