##// END OF EJS Templates
scm: mercurial: add test of diff non ASCII path name in functional test....
Toshi MARUYAMA -
r5569:ff6a86364e99
parent child
Show More
@@ -277,15 +277,26 class RepositoriesMercurialControllerTest < ActionController::TestCase
277 end
277 end
278
278
279 def test_diff_latin_1_path
279 def test_diff_latin_1_path
280 [21, 'adf805632193'].each do |r1|
280 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
281 get :diff, :id => PRJ_ID, :rev => r1
281 [21, 'adf805632193'].each do |r1|
282 assert_response :success
282 get :diff, :id => PRJ_ID, :rev => r1
283 assert_template 'diff'
283 assert_response :success
284 assert_tag :tag => 'th',
284 assert_template 'diff'
285 :content => '2',
285 assert_tag :tag => 'thead',
286 :sibling => {:tag => 'td',
286 :descendant => {
287 :attributes => { :class => /diff_in/ },
287 :tag => 'th',
288 :content => /It is written in Python/ }
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 end
300 end
290 end
301 end
291
302
General Comments 0
You need to be logged in to leave comments. Login now