diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 11:11:28 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 11:11:28 +0000 |
commit | 7786633ddc899d6a9ee236f0acf3561890a870d9 (patch) | |
tree | 8905e1e98bd40755f035e3eda9d9210873bd82b6 /test/unit/lib | |
parent | 3b3616ed218048fe2a36371e00d9e0480ce3131a (diff) | |
download | redmine-7786633ddc899d6a9ee236f0acf3561890a870d9.tar.gz redmine-7786633ddc899d6a9ee236f0acf3561890a870d9.zip |
scm: filesystem: replace RAILS_ROOT to Rails.root in unit adapter test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6053 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb index 0f4511d5a..4d4e28c0d 100644 --- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb @@ -2,8 +2,7 @@ require File.expand_path('../../../../../../test_helper', __FILE__) class FilesystemAdapterTest < ActiveSupport::TestCase - - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/filesystem_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s if File.directory?(REPOSITORY_PATH) def setup |