scm: bazaar: replace RAILS_ROOT to Rails.root in unit adapter test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6056 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d91cf134b0
commit
01656ff590
|
@ -3,9 +3,7 @@ begin
|
||||||
require 'mocha'
|
require 'mocha'
|
||||||
|
|
||||||
class BazaarAdapterTest < ActiveSupport::TestCase
|
class BazaarAdapterTest < ActiveSupport::TestCase
|
||||||
|
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
|
||||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') +
|
|
||||||
'/tmp/test/bazaar_repository'
|
|
||||||
REPOSITORY_PATH.gsub!(/\/+/, '/')
|
REPOSITORY_PATH.gsub!(/\/+/, '/')
|
||||||
|
|
||||||
if File.directory?(REPOSITORY_PATH)
|
if File.directory?(REPOSITORY_PATH)
|
||||||
|
|
Loading…
Reference in New Issue