diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index bbe219d9c..26f1a532f 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -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