@@ -349,7 +349,8 class AttachmentTest < ActiveSupport::TestCase | |||||
349 | end |
|
349 | end | |
350 |
|
350 | |||
351 | def test_thumbnail_should_return_nil_if_generation_fails |
|
351 | def test_thumbnail_should_return_nil_if_generation_fails | |
352 |
Redmine::Thumbnail. |
|
352 | Redmine::Thumbnail.expects(:generate).raises(SystemCallError, 'Something went wrong') | |
|
353 | set_fixtures_attachments_directory | |||
353 | attachment = Attachment.find(16) |
|
354 | attachment = Attachment.find(16) | |
354 | assert_nil attachment.thumbnail |
|
355 | assert_nil attachment.thumbnail | |
355 | end |
|
356 | end |
General Comments 0
You need to be logged in to leave comments.
Login now