From 2230c11baa5c302af9850402b1d7c0734b8b39db Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 14 Jan 2013 21:03:53 +0000 Subject: Use named route with attachment filename for inline images. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11189 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index e097efe52..7e4505a74 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -132,12 +132,12 @@ RAW def test_attached_images to_test = { - 'Inline image: !logo.gif!' => 'Inline image: This is a logo', - 'Inline image: !logo.GIF!' => 'Inline image: This is a logo', + '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: ', # link image - '!logo.gif!:http://foo.bar/' => 'This is a logo', + '!logo.gif!:http://foo.bar/' => 'This is a logo', } attachments = Attachment.all to_test.each { |text, result| assert_equal "

#{result}

", textilizable(text, :attachments => attachments) } @@ -183,13 +183,13 @@ RAW to_test = { 'Inline image: !testtest.jpg!' => - 'Inline image: ', + 'Inline image: ', 'Inline image: !testtest.jpeg!' => - 'Inline image: ', + 'Inline image: ', 'Inline image: !testtest.jpe!' => - 'Inline image: ', + 'Inline image: ', 'Inline image: !testtest.bmp!' => - 'Inline image: ', + 'Inline image: ', } attachments = [a1, a2, a3, a4] @@ -212,9 +212,9 @@ RAW to_test = { 'Inline image: !testfile.png!' => - 'Inline image: ', + 'Inline image: ', 'Inline image: !Testfile.PNG!' => - 'Inline image: ', + 'Inline image: ', } attachments = [a1, a2] to_test.each { |text, result| assert_equal "

#{result}

", textilizable(text, :attachments => attachments) } -- cgit v1.2.3