1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Clear thumbnails directory to prevent test failure.

git-svn-id: http://svn.redmine.org/redmine/trunk@17752 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2018-12-16 13:27:52 +00:00
parent 360772f2ad
commit fb1d0bf165

View File

@ -436,6 +436,8 @@ class AttachmentTest < ActiveSupport::TestCase
end end
def test_should_reuse_thumbnail def test_should_reuse_thumbnail
Attachment.clear_thumbnails
a = Attachment.create!( a = Attachment.create!(
:container => Issue.find(1), :container => Issue.find(1),
:file => uploaded_test_file("2010/11/101123161450_testfile_1.png", "image/png"), :file => uploaded_test_file("2010/11/101123161450_testfile_1.png", "image/png"),