diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-16 06:13:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-09-16 06:13:23 +0000 |
commit | dd5844b86cee455f9adce8be85c11eceb1c41e19 (patch) | |
tree | c4aaa6a28aa8572c8114da1530c1521b24b3d16b /test | |
parent | ee0fc2e1d5c2b60ab4b2e0c2be715cc0180503e9 (diff) | |
download | redmine-dd5844b86cee455f9adce8be85c11eceb1c41e19.tar.gz redmine-dd5844b86cee455f9adce8be85c11eceb1c41e19.zip |
scm: bazaar: separate constant repository path to repository and trunk branch at unit model test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10388 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/repository_bazaar_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb index 8e8c58dd6..4c3982ac3 100644 --- a/test/unit/repository_bazaar_test.rb +++ b/test/unit/repository_bazaar_test.rb @@ -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 |