@@ -277,15 +277,26 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
277 | 277 | end |
|
278 | 278 | |
|
279 | 279 | def test_diff_latin_1_path |
|
280 | [21, 'adf805632193'].each do |r1| | |
|
281 | get :diff, :id => PRJ_ID, :rev => r1 | |
|
282 | assert_response :success | |
|
283 | assert_template 'diff' | |
|
284 |
assert_t |
|
|
285 | :content => '2', | |
|
286 |
|
|
|
287 | :attributes => { :class => /diff_in/ }, | |
|
288 | :content => /It is written in Python/ } | |
|
280 | with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do | |
|
281 | [21, 'adf805632193'].each do |r1| | |
|
282 | get :diff, :id => PRJ_ID, :rev => r1 | |
|
283 | assert_response :success | |
|
284 | assert_template 'diff' | |
|
285 | assert_tag :tag => 'thead', | |
|
286 | :descendant => { | |
|
287 | :tag => 'th', | |
|
288 | :attributes => { :class => 'filename' } , | |
|
289 | :content => /latin-1-dir\/test-#{@char_1}-2.txt/ , | |
|
290 | }, | |
|
291 | :sibling => { | |
|
292 | :tag => 'tbody', | |
|
293 | :descendant => { | |
|
294 | :tag => 'td', | |
|
295 | :attributes => { :class => /diff_in/ }, | |
|
296 | :content => /It is written in Python/ | |
|
297 | } | |
|
298 | } | |
|
299 | end | |
|
289 | 300 | end |
|
290 | 301 | end |
|
291 | 302 |
General Comments 0
You need to be logged in to leave comments.
Login now