@@ -23,7 +23,8 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
23 | fixtures :projects, :users, :roles, :members, :member_roles, |
|
23 | fixtures :projects, :users, :roles, :members, :member_roles, | |
24 | :repositories, :enabled_modules |
|
24 | :repositories, :enabled_modules | |
25 |
|
25 | |||
26 |
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository |
|
26 | REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s | |
|
27 | REPOSITORY_PATH_TRUNK = File.join(REPOSITORY_PATH, "trunk") | |||
27 | PRJ_ID = 3 |
|
28 | PRJ_ID = 3 | |
28 |
|
29 | |||
29 | def setup |
|
30 | def setup | |
@@ -31,7 +32,7 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
31 | @project = Project.find(PRJ_ID) |
|
32 | @project = Project.find(PRJ_ID) | |
32 | @repository = Repository::Bazaar.create( |
|
33 | @repository = Repository::Bazaar.create( | |
33 | :project => @project, |
|
34 | :project => @project, | |
34 | :url => REPOSITORY_PATH, |
|
35 | :url => REPOSITORY_PATH_TRUNK, | |
35 | :log_encoding => 'UTF-8') |
|
36 | :log_encoding => 'UTF-8') | |
36 | assert @repository |
|
37 | assert @repository | |
37 | end |
|
38 | end |
General Comments 0
You need to be logged in to leave comments.
Login now