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:
Toshi MARUYAMA 2011-07-11 00:14:49 +00:00
parent e8efb5ef71
commit a8871a5af7
1 changed files with 2 additions and 1 deletions

View File

@ -37,8 +37,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'
)