From e2adda86c24a8f6e15599696e85f66ea93e837bd Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 07:41:25 +0000 Subject: [PATCH] scm: git: add latest changesets path encoding test in unit model test (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5058 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/repository_git_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index a39b1ff73..bd557aa40 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -181,6 +181,20 @@ class RepositoryGitTest < ActiveSupport::TestCase '713f4944648826f558cf548222f813dabe7cbb04', '61b685fbe55ab05b5ac68402d5720c1a6ac973d1', ], changesets.collect(&:revision) + + # latin-1 encoding path + changesets = @repository.latest_changesets( + "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89') + assert_equal [ + '64f1f3e89ad1cb57976ff0ad99a107012ba3481d', + '4fc55c43bf3d3dc2efb66145365ddc17639ce81e', + ], changesets.collect(&:revision) + + changesets = @repository.latest_changesets( + "latin-1-dir/test-#{@char_1}-2.txt", '64f1f3e89', 1) + assert_equal [ + '64f1f3e89ad1cb57976ff0ad99a107012ba3481d', + ], changesets.collect(&:revision) end def test_find_changeset_by_name -- 2.39.5