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

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

index eb426a0da2af2e8fe6d2912c0b75e8ef493c913a..b539836ada1e9ad44324d994c23ff2b1adceaf15 100644 (file)
@@ -47,6 +47,22 @@ begin
         assert_equal entries[0].lastrev.time, Time.gm(2007, 12, 13, 16, 27, 22)
       end
 
+      def test_path_encoding_default_utf8
+        adpt1 = Redmine::Scm::Adapters::CvsAdapter.new(
+                                  MODULE_NAME,
+                                  REPOSITORY_PATH
+                                )
+        assert_equal "UTF-8", adpt1.path_encoding
+        adpt2 = Redmine::Scm::Adapters::CvsAdapter.new(
+                                  MODULE_NAME,
+                                  REPOSITORY_PATH,
+                                  nil,
+                                  nil,
+                                  ""
+                                )
+        assert_equal "UTF-8", adpt2.path_encoding
+      end
+
       private
 
       def test_scm_version_for(scm_command_version, version)