@@ -5,12 +5,14 begin | |||||
5 | class BazaarAdapterTest < ActiveSupport::TestCase |
|
5 | class BazaarAdapterTest < ActiveSupport::TestCase | |
6 |
|
6 | |||
7 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + |
|
7 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + | |
8 |
'/tmp/test/bazaar_repository |
|
8 | '/tmp/test/bazaar_repository' | |
9 | REPOSITORY_PATH.gsub!(/\/+/, '/') |
|
9 | REPOSITORY_PATH.gsub!(/\/+/, '/') | |
10 |
|
10 | |||
11 | if File.directory?(REPOSITORY_PATH) |
|
11 | if File.directory?(REPOSITORY_PATH) | |
12 | def setup |
|
12 | def setup | |
13 |
@adapter = Redmine::Scm::Adapters::BazaarAdapter.new( |
|
13 | @adapter = Redmine::Scm::Adapters::BazaarAdapter.new( | |
|
14 | File.join(REPOSITORY_PATH, "trunk") | |||
|
15 | ) | |||
14 | end |
|
16 | end | |
15 |
|
17 | |||
16 | def test_scm_version |
|
18 | def test_scm_version |
General Comments 0
You need to be logged in to leave comments.
Login now