diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-14 20:51:49 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-14 20:51:49 +0000 |
commit | 6ce28450c00483f0f6962d3e9022735cbe5b7903 (patch) | |
tree | 26eb528f15fc646c8e7fa4a522f65a6aff92f675 /test/unit/helpers | |
parent | 4ebdcf13db34186bb562ed523c637dd6edc86682 (diff) | |
download | redmine-6ce28450c00483f0f6962d3e9022735cbe5b7903.tar.gz redmine-6ce28450c00483f0f6962d3e9022735cbe5b7903.zip |
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
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 506c30cc7..e097efe52 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -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>), |