From 3abdd84a497d84a337764172a7e7422177113e43 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 06:38:23 +0000 Subject: [PATCH] scm: git: add tests for path encoding entries() in unit adapter test (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5050 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index d39361820..fa0f90aaf 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -171,6 +171,16 @@ begin assert_equal Time.gm(2009, 6, 19, 4, 37, 23), readme.lastrev.time end + def test_entries_latin_1_path + entries1 = @adapter.entries('latin-1-dir', '64f1f3e8') + assert entries1 + assert_equal 3, entries1.size + f1 = entries1[1] + assert_equal "test-#{@char_1}-2.txt", f1.name + assert_equal "latin-1-dir/test-#{@char_1}-2.txt", f1.path + assert_equal 'file', f1.kind + end + private def test_scm_version_for(scm_command_version, version) -- 2.39.5