From a8871a5af77a4949304ee4479bc8e936c0e05a99 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 11 Jul 2011 00:14:49 +0000 Subject: [PATCH] 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 --- test/functional/repositories_mercurial_controller_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 47c7e9404..4b83abf15 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -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' )