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
This commit is contained in:
Toshi MARUYAMA 2011-03-08 07:41:25 +00:00
parent 7d47bf8a7f
commit e2adda86c2
1 changed files with 14 additions and 0 deletions

View File

@ -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