From: Toshi MARUYAMA Date: Fri, 27 May 2011 01:14:07 +0000 (+0000) Subject: scm: bazaar: update test repository (#2799, #4741, #8030). X-Git-Tag: 1.3.0~1917 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9fa4fff48ae2f018abbc15d8dc5b87535e07ca13;p=redmine.git scm: bazaar: update test repository (#2799, #4741, #8030). * Shared repository with trees (format: 2a) * clone original branch to *trunk* * set append_revisions_only = true at trunk/.bzr/branch/branch.conf git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5932 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/fixtures/repositories/bazaar_repository.tar.gz b/test/fixtures/repositories/bazaar_repository.tar.gz index 621c2f145..59edee5d1 100644 Binary files a/test/fixtures/repositories/bazaar_repository.tar.gz and b/test/fixtures/repositories/bazaar_repository.tar.gz differ diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb index 52b6ba6dd..9b50e8999 100644 --- a/test/functional/repositories_bazaar_controller_test.rb +++ b/test/functional/repositories_bazaar_controller_test.rb @@ -26,7 +26,8 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase :repositories, :enabled_modules # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository' + REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + + '/tmp/test/bazaar_repository/trunk' PRJ_ID = 3 def setup 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 427c3b5e2..4a1edb399 100644 --- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb @@ -4,7 +4,8 @@ begin class BazaarAdapterTest < ActiveSupport::TestCase - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository' + REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + + '/tmp/test/bazaar_repository/trunk' REPOSITORY_PATH.gsub!(/\/+/, '/') if File.directory?(REPOSITORY_PATH) @@ -78,7 +79,7 @@ begin end def test_append_revisions_only - assert_equal false, @adapter.append_revisions_only + assert_equal true, @adapter.append_revisions_only end def test_info_not_nil diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb index 038db8f23..c19ba912c 100644 --- a/test/unit/repository_bazaar_test.rb +++ b/test/unit/repository_bazaar_test.rb @@ -21,7 +21,8 @@ class RepositoryBazaarTest < ActiveSupport::TestCase fixtures :projects # No '..' in the repository path - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/bazaar_repository' + REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + + '/tmp/test/bazaar_repository/trunk' REPOSITORY_PATH.gsub!(/\/+/, '/') def setup