summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_git_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-08 02:39:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-08 02:39:36 +0000
commit541a56d6e8f88f86f0e0b6eb7386080ddfefefd8 (patch)
tree63df08daba2da50e77a1dce15e99e59063b577cd /test/functional/repositories_git_controller_test.rb
parent099c8a6608c5ccbffa2706af901f161c0a8034d4 (diff)
downloadredmine-541a56d6e8f88f86f0e0b6eb7386080ddfefefd8.tar.gz
redmine-541a56d6e8f88f86f0e0b6eb7386080ddfefefd8.zip
scm: git: add test of annotate non ASCII content of non ASCII path in functional test.
TODO: this test fails in Ruby 1.9 and Encoding.default_external is not UTF-8. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5699 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_git_controller_test.rb')
-rw-r--r--test/functional/repositories_git_controller_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index b0542d6af..fa013d900 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -287,6 +287,24 @@ class RepositoriesGitControllerTest < ActionController::TestCase
:content => /cannot be annotated/
end
+ def test_annotate_latin_1
+ if @ruby19_non_utf8_pass
+ puts_ruby19_non_utf8_pass()
+ else
+ with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
+ ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|
+ get :annotate, :id => PRJ_ID,
+ :path => ['latin-1-dir', "test-#{@char_1}.txt"], :rev => r1
+ assert_tag :tag => 'th',
+ :content => '1',
+ :attributes => { :class => 'line-num' },
+ :sibling => { :tag => 'td',
+ :content => /test-#{@char_1}.txt/ }
+ end
+ end
+ end
+ end
+
def test_revision
@repository.fetch_changesets
@repository.reload