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