diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 10:11:57 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-06-10 10:11:57 +0000 |
commit | ea9847bb37c759e884fa83bf6ff5bcf77878a682 (patch) | |
tree | 1fad6b980cf32a2d6e7b23eb8332cd9e29a5c152 /test/unit/repository_darcs_test.rb | |
parent | 5ffc8554386e61e288c14609bbdba867c48dceff (diff) | |
download | redmine-ea9847bb37c759e884fa83bf6ff5bcf77878a682.tar.gz redmine-ea9847bb37c759e884fa83bf6ff5bcf77878a682.zip |
scm: darcs: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6048 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_darcs_test.rb')
-rw-r--r-- | test/unit/repository_darcs_test.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/repository_darcs_test.rb b/test/unit/repository_darcs_test.rb index 7cc6cb09c..65395fe51 100644 --- a/test/unit/repository_darcs_test.rb +++ b/test/unit/repository_darcs_test.rb @@ -20,14 +20,15 @@ require File.expand_path('../../test_helper', __FILE__) class RepositoryDarcsTest < ActiveSupport::TestCase fixtures :projects - # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/darcs_repository' + REPOSITORY_PATH = Rails.root.join('tmp/test/darcs_repository').to_s def setup @project = Project.find(3) @repository = Repository::Darcs.create( - :project => @project, :url => REPOSITORY_PATH, - :log_encoding => 'UTF-8') + :project => @project, + :url => REPOSITORY_PATH, + :log_encoding => 'UTF-8' + ) assert @repository end |