##// END OF EJS Templates
scm: git: add latin-1 encoding directory test in unit adapter test (#5251)....
Toshi MARUYAMA -
r4942:4e0031a8f0aa
parent child
Show More
@@ -171,7 +171,7 begin
171 assert_equal Time.gm(2009, 6, 19, 4, 37, 23), readme.lastrev.time
171 assert_equal Time.gm(2009, 6, 19, 4, 37, 23), readme.lastrev.time
172 end
172 end
173
173
174 def test_entries_latin_1_path
174 def test_entries_latin_1_files
175 entries1 = @adapter.entries('latin-1-dir', '64f1f3e8')
175 entries1 = @adapter.entries('latin-1-dir', '64f1f3e8')
176 assert entries1
176 assert entries1
177 assert_equal 3, entries1.size
177 assert_equal 3, entries1.size
@@ -181,6 +181,20 begin
181 assert_equal 'file', f1.kind
181 assert_equal 'file', f1.kind
182 end
182 end
183
183
184 def test_entries_latin_1_dir
185 if Redmine::Platform.mswin?
186 # TODO
187 else
188 entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed')
189 assert entries1
190 assert_equal 3, entries1.size
191 f1 = entries1[1]
192 assert_equal "test-#{@char_1}-2.txt", f1.name
193 assert_equal "latin-1-dir/test-#{@char_1}-subdir/test-#{@char_1}-2.txt", f1.path
194 assert_equal 'file', f1.kind
195 end
196 end
197
184 private
198 private
185
199
186 def test_scm_version_for(scm_command_version, version)
200 def test_scm_version_for(scm_command_version, version)
General Comments 0
You need to be logged in to leave comments. Login now