summaryrefslogtreecommitdiffstats
path: root/test/unit/attachment_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 12:22:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-05 12:22:35 +0000
commit0cfbf9d44908fac592485272d966c405804b4ec8 (patch)
tree624b319ccd221a8ff6dc091ddf84f44efc392038 /test/unit/attachment_test.rb
parent7c1445f19a6030bc6c23f6463411fe0e6c607f41 (diff)
downloadredmine-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.rb3
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