scm: git: add latin-1 encoding directory test in unit adapter test (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5062 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
de71851e98
commit
4e0031a8f0
|
@ -171,7 +171,7 @@ begin
|
||||||
assert_equal Time.gm(2009, 6, 19, 4, 37, 23), readme.lastrev.time
|
assert_equal Time.gm(2009, 6, 19, 4, 37, 23), readme.lastrev.time
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_entries_latin_1_path
|
def test_entries_latin_1_files
|
||||||
entries1 = @adapter.entries('latin-1-dir', '64f1f3e8')
|
entries1 = @adapter.entries('latin-1-dir', '64f1f3e8')
|
||||||
assert entries1
|
assert entries1
|
||||||
assert_equal 3, entries1.size
|
assert_equal 3, entries1.size
|
||||||
|
@ -181,6 +181,20 @@ begin
|
||||||
assert_equal 'file', f1.kind
|
assert_equal 'file', f1.kind
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_entries_latin_1_dir
|
||||||
|
if Redmine::Platform.mswin?
|
||||||
|
# TODO
|
||||||
|
else
|
||||||
|
entries1 = @adapter.entries("latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed')
|
||||||
|
assert entries1
|
||||||
|
assert_equal 3, entries1.size
|
||||||
|
f1 = entries1[1]
|
||||||
|
assert_equal "test-#{@char_1}-2.txt", f1.name
|
||||||
|
assert_equal "latin-1-dir/test-#{@char_1}-subdir/test-#{@char_1}-2.txt", f1.path
|
||||||
|
assert_equal 'file', f1.kind
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def test_scm_version_for(scm_command_version, version)
|
def test_scm_version_for(scm_command_version, version)
|
||||||
|
|
Loading…
Reference in New Issue