From: Toshi MARUYAMA Date: Sat, 21 May 2011 02:40:19 +0000 (+0000) Subject: scm: git: add unit adapter test of default path_encoding is UTF-8 (#5251). X-Git-Tag: 1.2.0~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61fb6d6e103bd8d54384059b27b28401b9755e19;p=redmine.git 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 --- diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index ccbf8aa12..42cc78071 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -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)