summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-26 14:59:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-06-26 14:59:03 +0000
commitad7816cea4361341a161afae00078ceb0f5fbb35 (patch)
tree02ad6b9fa9ce603e348fb2319692e38bf267bfa5 /test/test_helper.rb
parent31e3d180c01e701eb71ded5dd842fcc5e743365a (diff)
downloadredmine-ad7816cea4361341a161afae00078ceb0f5fbb35.tar.gz
redmine-ad7816cea4361341a161afae00078ceb0f5fbb35.zip
Tests: create tmp/test if it doesn't exist.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1586 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb1
1 files changed, 1 insertions, 0 deletions
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