scm: git: add unit adapter test of default path_encoding is UTF-8 (#5251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5871 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
61c5740a86
commit
61fb6d6e10
|
@ -334,6 +334,21 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_path_encoding_default_utf8
|
||||||
|
adpt1 = Redmine::Scm::Adapters::GitAdapter.new(
|
||||||
|
REPOSITORY_PATH
|
||||||
|
)
|
||||||
|
assert_equal "UTF-8", adpt1.path_encoding
|
||||||
|
adpt2 = Redmine::Scm::Adapters::GitAdapter.new(
|
||||||
|
REPOSITORY_PATH,
|
||||||
|
nil,
|
||||||
|
nil,
|
||||||
|
nil,
|
||||||
|
""
|
||||||
|
)
|
||||||
|
assert_equal "UTF-8", adpt2.path_encoding
|
||||||
|
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