diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-09-18 06:16:55 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-09-18 06:16:55 +0000 |
commit | 900247700663c85e6ed1e352fa5b0a42367b6389 (patch) | |
tree | 7396a8ddfd935451bbf3e96d87abbe16e6a4d733 /test/unit | |
parent | da87e4b1ef39e03a59a00e3cf8de2b0ad351f5c8 (diff) | |
download | redmine-900247700663c85e6ed1e352fa5b0a42367b6389.tar.gz redmine-900247700663c85e6ed1e352fa5b0a42367b6389.zip |
scm: git: use "--encoding=UTF-8" for blame (#14931)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12143 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
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 7155bed4f..9a057331a 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -424,6 +424,19 @@ begin end end + def test_latin_1_user_annotate + ['83ca5fd546063a3c7dc2e568ba3355661a9e2b2c', '83ca5fd546063a'].each do |r1| + annotate = @adapter.annotate(" filename with a leading space.txt ", r1) + assert_kind_of Redmine::Scm::Adapters::Annotate, annotate + assert_equal 1, annotate.lines.size + assert_equal "And this is a file with a leading and trailing space...", + annotate.lines[0].strip + assert_equal "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c", + annotate.revisions[0].identifier + assert_equal @str_felix_hex, annotate.revisions[0].author + end + end + def test_entries_tag entries1 = @adapter.entries(nil, 'tag01.annotated', options = {:report_last_commit => true}) |