summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-08-30 07:40:32 +0000
committerGo MAEDA <maeda@farend.jp>2023-08-30 07:40:32 +0000
commit001e48a1510fc227753e636a9f8dfbedf48a9130 (patch)
tree815cd2323025e1e76f213a14f3e868423b7f7b77 /test/unit
parent37c32469214dc364bfd6cc66c60c43b30b252834 (diff)
downloadredmine-001e48a1510fc227753e636a9f8dfbedf48a9130.tar.gz
redmine-001e48a1510fc227753e636a9f8dfbedf48a9130.zip
Merged r22285 from trunk to 5.0-stable (#38697).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22286 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/mailer_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 8f21e9a0b..007be1a14 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -199,6 +199,18 @@ class MailerTest < ActiveSupport::TestCase
end
end
+ def test_thumbnail_macro_in_email
+ set_tmp_attachments_directory
+ issue = Issue.generate!(:description => '{{thumbnail(image.png)}}')
+ issue.attachments << Attachment.new(:file => mock_file_with_options(:original_filename => 'image.png'), :author => User.find(1))
+ issue.save!
+
+ assert Mailer.deliver_issue_add(issue)
+ assert_select_email do
+ assert_select 'img[alt="image.png"]'
+ end
+ end
+
def test_email_headers
with_settings :mail_from => 'Redmine <redmine@example.net>' do
issue = Issue.find(1)