From: Jean-Philippe Lang Date: Thu, 26 Jun 2008 14:59:03 +0000 (+0000) Subject: Tests: create tmp/test if it doesn't exist. X-Git-Tag: 0.8.0-RC1~408 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ad7816cea4361341a161afae00078ceb0f5fbb35;p=redmine.git Tests: create tmp/test if it doesn't exist. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1586 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/test_helper.rb b/test/test_helper.rb index 150b063e8..1340f9c35 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -60,6 +60,7 @@ class Test::Unit::TestCase # Use a temporary directory for attachment related tests def set_tmp_attachments_directory + Dir.mkdir "#{RAILS_ROOT}/tmp/test" unless File.directory?("#{RAILS_ROOT}/tmp/test") Dir.mkdir "#{RAILS_ROOT}/tmp/test/attachments" unless File.directory?("#{RAILS_ROOT}/tmp/test/attachments") Attachment.storage_path = "#{RAILS_ROOT}/tmp/test/attachments" end