]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add unit adapter test of default path_encoding is UTF-8 (#5251).
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 May 2011 02:40:19 +0000 (02:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 May 2011 02:40:19 +0000 (02:40 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5871 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/scm/adapters/git_adapter_test.rb

index ccbf8aa129f3a52a0fd367ea591397a39aeff75a..42cc78071cd91e07510cd2d09b9982f0a5d56a1c 100644 (file)
@@ -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)