diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 11:11:58 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 11:11:58 +0000 |
commit | 407761985e5a63b714dcacd55ea7d7442f2e81db (patch) | |
tree | 7e8882e090391028e1e5f1b5f9356aaa461f1cb8 /test/unit/repository_filesystem_test.rb | |
parent | 7786633ddc899d6a9ee236f0acf3561890a870d9 (diff) | |
download | redmine-407761985e5a63b714dcacd55ea7d7442f2e81db.tar.gz redmine-407761985e5a63b714dcacd55ea7d7442f2e81db.zip |
scm: filesystem: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6054 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_filesystem_test.rb')
-rw-r--r-- | test/unit/repository_filesystem_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 03a6edea4..613ccdaa5 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -20,8 +20,7 @@ require File.expand_path('../../test_helper', __FILE__) class RepositoryFilesystemTest < ActiveSupport::TestCase fixtures :projects - # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s def setup @project = Project.find(3) |