scm: mercurial: add instance variable @project at functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6242 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e8efb5ef71
commit
a8871a5af7
|
@ -37,8 +37,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||||
@request = ActionController::TestRequest.new
|
@request = ActionController::TestRequest.new
|
||||||
@response = ActionController::TestResponse.new
|
@response = ActionController::TestResponse.new
|
||||||
User.current = nil
|
User.current = nil
|
||||||
|
@project = Project.find(PRJ_ID)
|
||||||
@repository = Repository::Mercurial.create(
|
@repository = Repository::Mercurial.create(
|
||||||
:project => Project.find(PRJ_ID),
|
:project => @project,
|
||||||
:url => REPOSITORY_PATH,
|
:url => REPOSITORY_PATH,
|
||||||
:path_encoding => 'ISO-8859-1'
|
:path_encoding => 'ISO-8859-1'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue