##// END OF EJS Templates
Make sure that Redmine::Thumbnail.generate is called....
Jean-Philippe Lang -
r13332:0cfbf9d44908
parent child
Show More
@@ -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.stubs(:generate).raises(SystemCallError, 'Something went wrong')
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