@@ -22,13 +22,14 class RepositoryBazaarTest < ActiveSupport::TestCase | |||||
22 |
|
22 | |||
23 | include Redmine::I18n |
|
23 | include Redmine::I18n | |
24 |
|
24 | |||
25 |
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository |
|
25 | REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s | |
|
26 | REPOSITORY_PATH_TRUNK = File.join(REPOSITORY_PATH, "trunk") | |||
26 | NUM_REV = 4 |
|
27 | NUM_REV = 4 | |
27 |
|
28 | |||
28 | def setup |
|
29 | def setup | |
29 | @project = Project.find(3) |
|
30 | @project = Project.find(3) | |
30 | @repository = Repository::Bazaar.create( |
|
31 | @repository = Repository::Bazaar.create( | |
31 | :project => @project, :url => REPOSITORY_PATH, |
|
32 | :project => @project, :url => REPOSITORY_PATH_TRUNK, | |
32 | :log_encoding => 'UTF-8') |
|
33 | :log_encoding => 'UTF-8') | |
33 | assert @repository |
|
34 | assert @repository | |
34 | end |
|
35 | end | |
@@ -59,7 +60,7 class RepositoryBazaarTest < ActiveSupport::TestCase | |||||
59 | assert_include str, repo.errors.full_messages |
|
60 | assert_include str, repo.errors.full_messages | |
60 | end |
|
61 | end | |
61 |
|
62 | |||
62 | if File.directory?(REPOSITORY_PATH) |
|
63 | if File.directory?(REPOSITORY_PATH_TRUNK) | |
63 | def test_fetch_changesets_from_scratch |
|
64 | def test_fetch_changesets_from_scratch | |
64 | assert_equal 0, @repository.changesets.count |
|
65 | assert_equal 0, @repository.changesets.count | |
65 | @repository.fetch_changesets |
|
66 | @repository.fetch_changesets |
General Comments 0
You need to be logged in to leave comments.
Login now