Project

General

Profile

Patch #1782 ยป patch_for_running_tests_with_git.patch

Simone Carletti, 2008-08-13 16:07

View differences:

test/test_helper.rb (working copy)
60 60
  
61 61
  # Use a temporary directory for attachment related tests
62 62
  def set_tmp_attachments_directory
63
    Dir.mkdir "#{RAILS_ROOT}/tmp/test" unless File.directory?("#{RAILS_ROOT}/tmp/test")
64
    Dir.mkdir "#{RAILS_ROOT}/tmp/test/attachments" unless File.directory?("#{RAILS_ROOT}/tmp/test/attachments")
63
    FileUtils.mkpath "#{RAILS_ROOT}/tmp/test" unless File.directory?("#{RAILS_ROOT}/tmp/test")
64
    FileUtils.mkpath "#{RAILS_ROOT}/tmp/test/attachments" unless File.directory?("#{RAILS_ROOT}/tmp/test/attachments")
65 65
    Attachment.storage_path = "#{RAILS_ROOT}/tmp/test/attachments"
66 66
  end
67 67
end
    (1-1/1)