diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:22:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-05 12:22:35 +0000 |
commit | 0cfbf9d44908fac592485272d966c405804b4ec8 (patch) | |
tree | 624b319ccd221a8ff6dc091ddf84f44efc392038 /test/unit/attachment_test.rb | |
parent | 7c1445f19a6030bc6c23f6463411fe0e6c607f41 (diff) | |
download | redmine-0cfbf9d44908fac592485272d966c405804b4ec8.tar.gz redmine-0cfbf9d44908fac592485272d966c405804b4ec8.zip |
Make sure that Redmine::Thumbnail.generate is called.
git-svn-id: http://svn.redmine.org/redmine/trunk@13714 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/attachment_test.rb')
-rw-r--r-- | test/unit/attachment_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index d97ce93c7..7f53994e8 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -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 |