From ba6b822e976a34ad3c0eb6722245553687eef417 2011-07-11 02:07:19 From: Toshi MARUYAMA Date: 2011-07-11 02:07:19 Subject: [PATCH] Merged r6242 from trunk. 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 --- diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 7261189..07fba91 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -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' )