GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit a1b9b40b authored by tmaruyama's avatar tmaruyama

scm: bazaar: separate constant repository path to repository and trunk branch at unit model test

git-svn-id: https://svn.redmine.org/redmine/trunk@10388 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 97e6ec39
......@@ -22,13 +22,14 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
include Redmine::I18n
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository/trunk').to_s
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
REPOSITORY_PATH_TRUNK = File.join(REPOSITORY_PATH, "trunk")
NUM_REV = 4
def setup
@project = Project.find(3)
@repository = Repository::Bazaar.create(
:project => @project, :url => REPOSITORY_PATH,
:project => @project, :url => REPOSITORY_PATH_TRUNK,
:log_encoding => 'UTF-8')
assert @repository
end
......@@ -59,7 +60,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
assert_include str, repo.errors.full_messages
end
if File.directory?(REPOSITORY_PATH)
if File.directory?(REPOSITORY_PATH_TRUNK)
def test_fetch_changesets_from_scratch
assert_equal 0, @repository.changesets.count
@repository.fetch_changesets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment