]> source.dussan.org Git - redmine.git/commitdiff
Merged r6242 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 02:07:19 +0000 (02:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Jul 2011 02:07:19 +0000 (02:07 +0000)
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

test/functional/repositories_mercurial_controller_test.rb

index 726118951295fabafa317f5acad8c97546b5026e..07fba91f4acb46564a4eed81c981a028f92bb886 100644 (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'
                       )