Defect #38697 » add-test.patch
test/unit/mailer_test.rb | ||
---|---|---|
199 | 199 |
end |
200 | 200 |
end |
201 | 201 | |
202 |
def test_thumbnail_macro_in_email |
|
203 |
set_tmp_attachments_directory |
|
204 |
issue = Issue.generate!(:description => '{{thumbnail(image.png)}}') |
|
205 |
issue.attachments << Attachment.new(:file => mock_file_with_options(:original_filename => 'image.png'), :author => User.find(1)) |
|
206 |
issue.save! |
|
207 | ||
208 |
assert Mailer.deliver_issue_add(issue) |
|
209 |
assert_select_email do |
|
210 |
assert_select 'img[alt="image.png"]' |
|
211 |
end |
|
212 |
end |
|
213 | ||
202 | 214 |
def test_email_headers |
203 | 215 |
with_settings :mail_from => 'Redmine <redmine@example.net>' do |
204 | 216 |
issue = Issue.find(1) |
- « Previous
- 1
- 2
- Next »