From 9233a07a2355c646f9f691ebf68b1355cb9063da Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 24 Oct 2009 12:19:22 +0000 Subject: [PATCH] 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 --- test/unit/helpers/application_helper_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 4134141e..9db9434b 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: This is a logo', 'Inline image: !logo.GIF!' => 'Inline image: This is a logo', 'No match: !ogo.gif!' => 'No match: ', - 'No match: !ogo.GIF!' => 'No match: ' + 'No match: !ogo.GIF!' => 'No match: ', + # link image + '!logo.gif!:http://foo.bar/' => 'This is a logo', } attachments = Attachment.find(:all) to_test.each { |text, result| assert_equal "

#{result}

", textilizable(text, :attachments => attachments) } -- 2.11.0