scm: bazaar: split REPOSITORY_PATH to trunk in functional test (#14931)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12146 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9002477006
commit
23c56501de
@ -23,7 +23,8 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
|
|||||||
fixtures :projects, :users, :roles, :members, :member_roles,
|
fixtures :projects, :users, :roles, :members, :member_roles,
|
||||||
:repositories, :enabled_modules
|
:repositories, :enabled_modules
|
||||||
|
|
||||||
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")
|
||||||
PRJ_ID = 3
|
PRJ_ID = 3
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@ -31,7 +32,7 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
|
|||||||
@project = Project.find(PRJ_ID)
|
@project = Project.find(PRJ_ID)
|
||||||
@repository = Repository::Bazaar.create(
|
@repository = Repository::Bazaar.create(
|
||||||
:project => @project,
|
:project => @project,
|
||||||
:url => REPOSITORY_PATH,
|
:url => REPOSITORY_PATH_TRUNK,
|
||||||
:log_encoding => 'UTF-8')
|
:log_encoding => 'UTF-8')
|
||||||
assert @repository
|
assert @repository
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user