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:
Toshi MARUYAMA 2011-07-11 02:07:19 +00:00
parent b44044a76a
commit ba6b822e97
1 changed files with 2 additions and 1 deletions

View File

@ -38,8 +38,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
User.current = nil
@project = Project.find(PRJ_ID)
@repository = Repository::Mercurial.create(
:project => Project.find(PRJ_ID),
:project => @project,
:url => REPOSITORY_PATH,
:path_encoding => 'ISO-8859-1'
)