diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-14 21:18:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-14 21:18:40 +0000 |
commit | 6326752290a953c46601a3d4017ec12603ec8192 (patch) | |
tree | 7254f31fb8a92e8dab4df2e7857dc828112f9c14 /test/unit | |
parent | 1386c10074f97728c65c7693502668c1a56f4a0e (diff) | |
download | redmine-6326752290a953c46601a3d4017ec12603ec8192.tar.gz redmine-6326752290a953c46601a3d4017ec12603ec8192.zip |
Attachment name is added in the generated link.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11191 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 7e4505a74..2654a1017 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -549,9 +549,8 @@ RAW end def test_attachment_links - attachment_link = link_to('error281.txt', {:controller => 'attachments', :action => 'download', :id => '1'}, :class => 'attachment') to_test = { - 'attachment:error281.txt' => attachment_link + 'attachment:error281.txt' => '<a href="/attachments/download/1/error281.txt" class="attachment">error281.txt</a>' } to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => Issue.find(3).attachments), "#{text} failed" } end |