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
This commit is contained in:
parent
7786633ddc
commit
407761985e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue