summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 13:27:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 13:27:52 +0000
commitfb1d0bf165b36e446d92d33b5315bcb153a3bc67 (patch)
tree1b953ee6f7f84dd194e1b47d8287ed8225fd59a9 /test/unit
parent360772f2ad0cb804c09f334e3356d8a54d3faed2 (diff)
downloadredmine-fb1d0bf165b36e446d92d33b5315bcb153a3bc67.tar.gz
redmine-fb1d0bf165b36e446d92d33b5315bcb153a3bc67.zip
Clear thumbnails directory to prevent test failure.
git-svn-id: http://svn.redmine.org/redmine/trunk@17752 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/attachment_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index c9e94b31c..9491fae98 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -436,6 +436,8 @@ class AttachmentTest < ActiveSupport::TestCase
end
def test_should_reuse_thumbnail
+ Attachment.clear_thumbnails
+
a = Attachment.create!(
:container => Issue.find(1),
:file => uploaded_test_file("2010/11/101123161450_testfile_1.png", "image/png"),