scm: bazaar: use shared repository path as repository path in unit adapter test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5933 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9fa4fff48a
commit
27b9ad2a8a
|
@ -5,12 +5,14 @@ begin
|
|||
class BazaarAdapterTest < ActiveSupport::TestCase
|
||||
|
||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') +
|
||||
'/tmp/test/bazaar_repository/trunk'
|
||||
'/tmp/test/bazaar_repository'
|
||||
REPOSITORY_PATH.gsub!(/\/+/, '/')
|
||||
|
||||
if File.directory?(REPOSITORY_PATH)
|
||||
def setup
|
||||
@adapter = Redmine::Scm::Adapters::BazaarAdapter.new(REPOSITORY_PATH)
|
||||
@adapter = Redmine::Scm::Adapters::BazaarAdapter.new(
|
||||
File.join(REPOSITORY_PATH, "trunk")
|
||||
)
|
||||
end
|
||||
|
||||
def test_scm_version
|
||||
|
|
Loading…
Reference in New Issue