mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-03 14:19:41 +00:00
Make sure that Redmine::Thumbnail.generate is called.
git-svn-id: http://svn.redmine.org/redmine/trunk@13714 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7c1445f19a
commit
0cfbf9d449
@ -349,7 +349,8 @@ class AttachmentTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
def test_thumbnail_should_return_nil_if_generation_fails
|
||||
Redmine::Thumbnail.stubs(:generate).raises(SystemCallError, 'Something went wrong')
|
||||
Redmine::Thumbnail.expects(:generate).raises(SystemCallError, 'Something went wrong')
|
||||
set_fixtures_attachments_directory
|
||||
attachment = Attachment.find(16)
|
||||
assert_nil attachment.thumbnail
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user