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
This commit is contained in:
Toshi MARUYAMA 2011-05-27 01:14:07 +00:00
parent a267babfe8
commit 9fa4fff48a
4 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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