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' )