diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-21 02:38:56 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-21 02:38:56 +0000 |
commit | c9a3d925ca534bcd200505b65b99f1c64a461abf (patch) | |
tree | 6639bc519ce62ecdb9c29091f24b1cc6a5e11005 /test | |
parent | a1e3cf82181962313f076023f8ad2a57e22bda6c (diff) | |
download | redmine-c9a3d925ca534bcd200505b65b99f1c64a461abf.tar.gz redmine-c9a3d925ca534bcd200505b65b99f1c64a461abf.zip |
scm: mercurial: add unit adapter test of default path_encoding is UTF-8 (#2664).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5869 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb index 8fe4e2540..99315dfd1 100644 --- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @@ -332,6 +332,21 @@ begin end end + def test_path_encoding_default_utf8 + adpt1 = Redmine::Scm::Adapters::MercurialAdapter.new( + REPOSITORY_PATH + ) + assert_equal "UTF-8", adpt1.path_encoding + adpt2 = Redmine::Scm::Adapters::MercurialAdapter.new( + REPOSITORY_PATH, + nil, + nil, + nil, + "" + ) + assert_equal "UTF-8", adpt2.path_encoding + end + private def test_hgversion_for(hgversion, version) |