Commit 5e6f89f4 authored by tmaruyama's avatar tmaruyama
Browse files

scm: git: add unit adapter test of default path_encoding is UTF-8 (#5251).

git-svn-id: https://svn.redmine.org/redmine/trunk@5871 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 75a0d392
......@@ -334,6 +334,21 @@ begin
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
def test_scm_version_for(scm_command_version, version)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment