diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 12:19:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-10-24 12:19:22 +0000 |
commit | 9233a07a2355c646f9f691ebf68b1355cb9063da (patch) | |
tree | d4e1fd60241a06d251bf0cef4893466250ca9ba4 /test | |
parent | de8dcc5b26ab0c60c010058244e9341074328257 (diff) | |
download | redmine-9233a07a2355c646f9f691ebf68b1355cb9063da.tar.gz redmine-9233a07a2355c646f9f691ebf68b1355cb9063da.zip |
Adds a test for attached image inside a link (#4033).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2962 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 4134141e3..9db9434bd 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -95,7 +95,9 @@ class ApplicationHelperTest < HelperTestCase 'Inline image: !logo.gif!' => 'Inline image: <img src="/attachments/download/3" title="This is a logo" alt="This is a logo" />', 'Inline image: !logo.GIF!' => 'Inline image: <img src="/attachments/download/3" title="This is a logo" alt="This is a logo" />', 'No match: !ogo.gif!' => 'No match: <img src="ogo.gif" alt="" />', - 'No match: !ogo.GIF!' => 'No match: <img src="ogo.GIF" alt="" />' + 'No match: !ogo.GIF!' => 'No match: <img src="ogo.GIF" alt="" />', + # link image + '!logo.gif!:http://foo.bar/' => '<a href="http://foo.bar/"><img src="/attachments/download/3" title="This is a logo" alt="This is a logo" /></a>', } attachments = Attachment.find(:all) to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => attachments) } |