diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-16 01:54:05 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-16 01:54:05 +0000 |
commit | 99dc5492327f44fe865786b83ae404d361a03eee (patch) | |
tree | 4348d50b69343e4174041a71af5b3b2ab68c43e6 /test/test_helper.rb | |
parent | 7f458eb853e7ba533d2cecc58c02fd3515953c4d (diff) | |
download | redmine-99dc5492327f44fe865786b83ae404d361a03eee.tar.gz redmine-99dc5492327f44fe865786b83ae404d361a03eee.zip |
replace RAILS_ROOT to Rails.root in test/test_helper.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6078 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index e8474de15..d9882e7cc 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -78,9 +78,8 @@ class ActiveSupport::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" + Rails.root.join('tmp/test/attachments').mkdir_p + Attachment.storage_path = "#{Rails.root}/tmp/test/attachments" end def with_settings(options, &block) |