From: Toshi MARUYAMA Date: Sat, 21 May 2011 02:19:38 +0000 (+0000) Subject: scm: cvs: add unit adapter test of default path_encoding is UTF-8 (#3462). X-Git-Tag: 1.2.0~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c8309589b6db251e9e34ea3308ba9cbde039b859;p=redmine.git scm: cvs: add unit adapter test of default path_encoding is UTF-8 (#3462). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5867 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb index eb426a0da..b539836ad 100644 --- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb @@ -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)