##// END OF EJS Templates
scm: mercurial: change Latin-1 path test methods name....
Toshi MARUYAMA -
r5565:f157ecb91a80
parent child
Show More
@@ -123,7 +123,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
123 end
123 end
124 end
124 end
125
125
126 def test_show_directory_latin_1
126 def test_show_directory_latin_1_path
127 @repository.fetch_changesets
127 @repository.fetch_changesets
128 @repository.reload
128 @repository.reload
129 [21, '21', 'adf805632193'].each do |r1|
129 [21, '21', 'adf805632193'].each do |r1|
@@ -199,9 +199,10 class RepositoriesMercurialControllerTest < ActionController::TestCase
199 :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
199 :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
200 end
200 end
201
201
202 def test_entry_show_latin_1
202 def test_entry_show_latin_1_path
203 [21, '21', 'adf805632193'].each do |r1|
203 [21, '21', 'adf805632193'].each do |r1|
204 get :entry, :id => PRJ_ID, :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
204 get :entry, :id => PRJ_ID,
205 :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
205 assert_response :success
206 assert_response :success
206 assert_template 'entry'
207 assert_template 'entry'
207 assert_tag :tag => 'th',
208 assert_tag :tag => 'th',
@@ -270,16 +271,16 class RepositoriesMercurialControllerTest < ActionController::TestCase
270 end
271 end
271 end
272 end
272
273
273 def test_diff_latin_1
274 def test_diff_latin_1_path
274 [21, 'adf805632193'].each do |r1|
275 [21, 'adf805632193'].each do |r1|
275 get :diff, :id => PRJ_ID, :rev => r1
276 get :diff, :id => PRJ_ID, :rev => r1
276 assert_response :success
277 assert_response :success
277 assert_template 'diff'
278 assert_template 'diff'
278 assert_tag :tag => 'th',
279 assert_tag :tag => 'th',
279 :content => '2',
280 :content => '2',
280 :sibling => { :tag => 'td',
281 :sibling => {:tag => 'td',
281 :attributes => { :class => /diff_in/ },
282 :attributes => { :class => /diff_in/ },
282 :content => /It is written in Python/ }
283 :content => /It is written in Python/ }
283 end
284 end
284 end
285 end
285
286
@@ -323,9 +324,10 class RepositoriesMercurialControllerTest < ActionController::TestCase
323 end
324 end
324 end
325 end
325
326
326 def test_annotate_latin_1
327 def test_annotate_latin_1_path
327 [21, '21', 'adf805632193'].each do |r1|
328 [21, '21', 'adf805632193'].each do |r1|
328 get :annotate, :id => PRJ_ID, :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
329 get :annotate, :id => PRJ_ID,
330 :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
329 assert_response :success
331 assert_response :success
330 assert_template 'annotate'
332 assert_template 'annotate'
331 assert_tag :tag => 'th',
333 assert_tag :tag => 'th',
General Comments 0
You need to be logged in to leave comments. Login now