summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-21 02:19:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-21 02:19:38 +0000
commitc8309589b6db251e9e34ea3308ba9cbde039b859 (patch)
tree77b7fd79d3f19f6fac7ede116894deac83788f3f /test
parent0840ad69ea4df48122c7eb10eb48f93523c97c06 (diff)
downloadredmine-c8309589b6db251e9e34ea3308ba9cbde039b859.tar.gz
redmine-c8309589b6db251e9e34ea3308ba9cbde039b859.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb16
1 files changed, 16 insertions, 0 deletions
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)