From 084bdd7559b441c797cbbcc4b0cabe3a7a44d53d Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 12:08:35 +0000 Subject: [PATCH] scm: git: add latin-1 encoding directory test in unit model test (#5251). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5063 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 d1dfd2566..39503e099 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_test.rb @@ -197,6 +197,20 @@ class RepositoryGitTest < ActiveSupport::TestCase ], changesets.collect(&:revision) end + def test_latest_changesets_latin_1_dir + if Redmine::Platform.mswin? + # TODO + else + @repository.fetch_changesets + @repository.reload + changesets = @repository.latest_changesets( + "latin-1-dir/test-#{@char_1}-subdir", '1ca7f5ed') + assert_equal [ + '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', + ], changesets.collect(&:revision) + end + end + def test_find_changeset_by_name @repository.fetch_changesets @repository.reload -- 2.39.5