@@ -390,6 +390,20 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
390 | 390 | end |
|
391 | 391 | end |
|
392 | 392 | |
|
393 | def test_annotate_latin_1_contents | |
|
394 | with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do | |
|
395 | [27, '7bbf4c738e71'].each do |r1| | |
|
396 | get :annotate, :id => PRJ_ID, | |
|
397 | :path => ['latin-1-dir', "test-#{@char_1}.txt"], :rev => r1 | |
|
398 | assert_tag :tag => 'th', | |
|
399 | :content => '1', | |
|
400 | :attributes => { :class => 'line-num' }, | |
|
401 | :sibling => { :tag => 'td', | |
|
402 | :content => /test-#{@char_1}.txt/ } | |
|
403 | end | |
|
404 | end | |
|
405 | end | |
|
406 | ||
|
393 | 407 | def test_empty_revision |
|
394 | 408 | @repository.fetch_changesets |
|
395 | 409 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now