From: Toshi MARUYAMA Date: Mon, 11 Jul 2011 01:08:56 +0000 (+0000) Subject: scm: git: add instance variable @project at functional test. X-Git-Tag: 1.3.0~1676 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61e6dc0a482108d96f43fd30417d9fbf034c82b7;p=redmine.git 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 --- diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index bbe219d9c..26f1a532f 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -46,9 +46,10 @@ class RepositoriesGitControllerTest < ActionController::TestCase @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new User.current = nil + @project = Project.find(PRJ_ID) @repository = Repository::Git.create( - :project => Project.find(3), - :url => REPOSITORY_PATH, + :project => @project, + :url => REPOSITORY_PATH, :path_encoding => 'ISO-8859-1' ) assert @repository