scm: bazaar: replace RAILS_ROOT to Rails.root in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6057 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
01656ff590
commit
fa93c2b2bb
@ -20,9 +20,7 @@ require File.expand_path('../../test_helper', __FILE__)
|
||||
class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||
fixtures :projects
|
||||
|
||||
# No '..' in the repository path
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') +
|
||||
'/tmp/test/bazaar_repository/trunk'
|
||||
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository/trunk').to_s
|
||||
REPOSITORY_PATH.gsub!(/\/+/, '/')
|
||||
|
||||
def setup
|
||||
|
Loading…
x
Reference in New Issue
Block a user