@@ -25,6 +25,7 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
25 | 25 | REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin? |
|
26 | 26 | |
|
27 | 27 | FELIX_HEX = "Felix Sch\xC3\xA4fer" |
|
28 | CHAR_1_HEX = "\xc3\x9c" | |
|
28 | 29 | |
|
29 | 30 | def setup |
|
30 | 31 | @project = Project.find(3) |
@@ -34,6 +35,10 class RepositoryGitTest < ActiveSupport::TestCase | |||
|
34 | 35 | :path_encoding => 'ISO-8859-1' |
|
35 | 36 | ) |
|
36 | 37 | assert @repository |
|
38 | @char_1 = CHAR_1_HEX.dup | |
|
39 | if @char_1.respond_to?(:force_encoding) | |
|
40 | @char_1.force_encoding('UTF-8') | |
|
41 | end | |
|
37 | 42 | end |
|
38 | 43 | |
|
39 | 44 | if File.directory?(REPOSITORY_PATH) |
General Comments 0
You need to be logged in to leave comments.
Login now