summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-27 01:14:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-27 01:14:07 +0000
commit9fa4fff48ae2f018abbc15d8dc5b87535e07ca13 (patch)
tree2980a5fa8623755d1a82c31c70f05fae1d014cc5 /test
parenta267babfe8064691fe7e9a85434236de3f606e46 (diff)
downloadredmine-9fa4fff48ae2f018abbc15d8dc5b87535e07ca13.tar.gz
redmine-9fa4fff48ae2f018abbc15d8dc5b87535e07ca13.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/fixtures/repositories/bazaar_repository.tar.gzbin9382 -> 21287 bytes
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb3
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb5
-rw-r--r--test/unit/repository_bazaar_test.rb3
4 files changed, 7 insertions, 4 deletions
diff --git a/test/fixtures/repositories/bazaar_repository.tar.gz b/test/fixtures/repositories/bazaar_repository.tar.gz
index 621c2f145..59edee5d1 100644
--- a/test/fixtures/repositories/bazaar_repository.tar.gz
+++ b/test/fixtures/repositories/bazaar_repository.tar.gz
Binary files 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