]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add instance variable @project at functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 01:08:56 +0000 (01:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 01:08:56 +0000 (01:08 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6248 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index bbe219d9c6b0a986af240aae2472c26e5e9a8c22..26f1a532fe4ca59b9ff76a5c21bdfd0c938d49ff 100644 (file)
@@ -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