1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -26,7 +26,8 class RepositoriesBazaarControllerTest < ActionController::TestCase | |||||
26 | :repositories, :enabled_modules |
|
26 | :repositories, :enabled_modules | |
27 |
|
27 | |||
28 | # No '..' in the repository path |
|
28 | # No '..' in the repository path | |
29 |
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + |
|
29 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + | |
|
30 | '/tmp/test/bazaar_repository/trunk' | |||
30 | PRJ_ID = 3 |
|
31 | PRJ_ID = 3 | |
31 |
|
32 | |||
32 | def setup |
|
33 | def setup |
@@ -4,7 +4,8 begin | |||||
4 |
|
4 | |||
5 | class BazaarAdapterTest < ActiveSupport::TestCase |
|
5 | class BazaarAdapterTest < ActiveSupport::TestCase | |
6 |
|
6 | |||
7 |
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + |
|
7 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + | |
|
8 | '/tmp/test/bazaar_repository/trunk' | |||
8 | REPOSITORY_PATH.gsub!(/\/+/, '/') |
|
9 | REPOSITORY_PATH.gsub!(/\/+/, '/') | |
9 |
|
10 | |||
10 | if File.directory?(REPOSITORY_PATH) |
|
11 | if File.directory?(REPOSITORY_PATH) | |
@@ -78,7 +79,7 begin | |||||
78 | end |
|
79 | end | |
79 |
|
80 | |||
80 | def test_append_revisions_only |
|
81 | def test_append_revisions_only | |
81 |
assert_equal |
|
82 | assert_equal true, @adapter.append_revisions_only | |
82 | end |
|
83 | end | |
83 |
|
84 | |||
84 | def test_info_not_nil |
|
85 | def test_info_not_nil |
@@ -21,7 +21,8 class RepositoryBazaarTest < ActiveSupport::TestCase | |||||
21 | fixtures :projects |
|
21 | fixtures :projects | |
22 |
|
22 | |||
23 | # No '..' in the repository path |
|
23 | # No '..' in the repository path | |
24 |
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + |
|
24 | REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + | |
|
25 | '/tmp/test/bazaar_repository/trunk' | |||
25 | REPOSITORY_PATH.gsub!(/\/+/, '/') |
|
26 | REPOSITORY_PATH.gsub!(/\/+/, '/') | |
26 |
|
27 | |||
27 | def setup |
|
28 | def setup |
General Comments 0
You need to be logged in to leave comments.
Login now