From 61fb6d6e103bd8d54384059b27b28401b9755e19 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 21 May 2011 02:40:19 +0000 Subject: [PATCH] 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 --- .../lib/redmine/scm/adapters/git_adapter_test.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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) -- 2.39.5