]> source.dussan.org Git - redmine.git/commitdiff
Tests: create tmp/test if it doesn't exist.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jun 2008 14:59:03 +0000 (14:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jun 2008 14:59:03 +0000 (14:59 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1586 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index 150b063e80ce7c02e5f2c850863101e5ae3579e3..1340f9c3518bace48d560e25255fad95c3b32655 100644 (file)
@@ -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