##// END OF EJS Templates
scm: git: add test of annotate non ASCII content of non ASCII path in functional test....
Toshi MARUYAMA -
r5579:541a56d6e8f8
parent child
Show More
@@ -287,6 +287,24 class RepositoriesGitControllerTest < ActionController::TestCase
287 :content => /cannot be annotated/
287 :content => /cannot be annotated/
288 end
288 end
289
289
290 def test_annotate_latin_1
291 if @ruby19_non_utf8_pass
292 puts_ruby19_non_utf8_pass()
293 else
294 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
295 ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|
296 get :annotate, :id => PRJ_ID,
297 :path => ['latin-1-dir', "test-#{@char_1}.txt"], :rev => r1
298 assert_tag :tag => 'th',
299 :content => '1',
300 :attributes => { :class => 'line-num' },
301 :sibling => { :tag => 'td',
302 :content => /test-#{@char_1}.txt/ }
303 end
304 end
305 end
306 end
307
290 def test_revision
308 def test_revision
291 @repository.fetch_changesets
309 @repository.fetch_changesets
292 @repository.reload
310 @repository.reload
General Comments 0
You need to be logged in to leave comments. Login now