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
This commit is contained in:
parent
4e0031a8f0
commit
084bdd7559
|
@ -197,6 +197,20 @@ class RepositoryGitTest < ActiveSupport::TestCase
|
||||||
], changesets.collect(&:revision)
|
], changesets.collect(&:revision)
|
||||||
end
|
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
|
def test_find_changeset_by_name
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@repository.reload
|
@repository.reload
|
||||||
|
|
Loading…
Reference in New Issue