From: Toshi MARUYAMA Date: Fri, 27 May 2011 02:50:45 +0000 (+0000) Subject: scm: bazaar: use shared repository path as repository path in unit adapter test. X-Git-Tag: 1.3.0~1916 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=27b9ad2a8aa747784cb0f93ad760a2ac52739915;p=redmine.git 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 --- diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb index 4a1edb399..093aaed0a 100644 --- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb @@ -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