scm: mercurial: add unit adapter test of default path_encoding is UTF-8 (#2664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5869 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a1e3cf8218
commit
c9a3d925ca
|
@ -332,6 +332,21 @@ begin
|
|||
end
|
||||
end
|
||||
|
||||
def test_path_encoding_default_utf8
|
||||
adpt1 = Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||
REPOSITORY_PATH
|
||||
)
|
||||
assert_equal "UTF-8", adpt1.path_encoding
|
||||
adpt2 = Redmine::Scm::Adapters::MercurialAdapter.new(
|
||||
REPOSITORY_PATH,
|
||||
nil,
|
||||
nil,
|
||||
nil,
|
||||
""
|
||||
)
|
||||
assert_equal "UTF-8", adpt2.path_encoding
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def test_hgversion_for(hgversion, version)
|
||||
|
|
Loading…
Reference in New Issue