scm: git: add instance variable @project at functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6248 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-07-11 01:08:56 +00:00
parent d34d933f31
commit 61e6dc0a48

View File

@ -46,9 +46,10 @@ class RepositoriesGitControllerTest < 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::Git.create( @repository = Repository::Git.create(
:project => Project.find(3), :project => @project,
:url => REPOSITORY_PATH, :url => REPOSITORY_PATH,
:path_encoding => 'ISO-8859-1' :path_encoding => 'ISO-8859-1'
) )
assert @repository assert @repository