diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-05 20:25:01 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-05 20:25:01 +0000 |
commit | ff0c96011fc821e15b373c3068bfa9fda1c05246 (patch) | |
tree | 73bcc1273b59bbd5d365c38b24459ee0eb1ba39b /test | |
parent | 4aa90cc072f2d2c754606f25efdedb96ee0db01b (diff) | |
download | redmine-ff0c96011fc821e15b373c3068bfa9fda1c05246.tar.gz redmine-ff0c96011fc821e15b373c3068bfa9fda1c05246.zip |
Fixed: inline attached image should not match partial filename (#2683).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2363 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 26ecf50b1..cafa92ef4 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -89,7 +89,9 @@ class ApplicationHelperTest < HelperTestCase def test_attached_images to_test = { '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" />' + '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="" />' } attachments = Attachment.find(:all) to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text, :attachments => attachments) } |