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