Merged r6242 from trunk.
scm: mercurial: add instance variable @project at functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6251 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b44044a76a
commit
ba6b822e97
|
@ -38,8 +38,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