scm: git: prepare path encoding test in unit model test (#5251).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5051 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-08 06:49:44 +00:00 committed by Eric Davis
parent 18decee672
commit 8235e0f4a6
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ class RepositoryGitTest < ActiveSupport::TestCase
def setup
Setting.commit_logs_encoding = 'UTF-8'
@project = Project.find(3)
@repository = Repository::Git.create(:project => @project, :url => REPOSITORY_PATH)
@repository = Repository::Git.create(
:project => @project,
:url => REPOSITORY_PATH,
:path_encoding => 'ISO-8859-1'
)
assert @repository
end