##// END OF EJS Templates
scm: git: prepare path encoding test in unit model test (#5251)....
Toshi MARUYAMA -
r4937:7d47bf8a7f27
parent child
Show More
@@ -25,6 +25,7 class RepositoryGitTest < ActiveSupport::TestCase
25 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
25 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
26
26
27 FELIX_HEX = "Felix Sch\xC3\xA4fer"
27 FELIX_HEX = "Felix Sch\xC3\xA4fer"
28 CHAR_1_HEX = "\xc3\x9c"
28
29
29 def setup
30 def setup
30 @project = Project.find(3)
31 @project = Project.find(3)
@@ -34,6 +35,10 class RepositoryGitTest < ActiveSupport::TestCase
34 :path_encoding => 'ISO-8859-1'
35 :path_encoding => 'ISO-8859-1'
35 )
36 )
36 assert @repository
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 end
42 end
38
43
39 if File.directory?(REPOSITORY_PATH)
44 if File.directory?(REPOSITORY_PATH)
General Comments 0
You need to be logged in to leave comments. Login now