]> source.dussan.org Git - redmine.git/commitdiff
scm: bazaar: use shared repository path as repository path in unit adapter test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 02:50:45 +0000 (02:50 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 27 May 2011 02:50:45 +0000 (02:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5933 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb

index 4a1edb3995da95a263db0c5219fb01dc88ce8e44..093aaed0abad3c2c73172e95be01fcff457ba3c8 100644 (file)
@@ -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