##// END OF EJS Templates
scm: git: run both "inline" and "side by side" diff in functional test_diff_latin_1 test....
Toshi MARUYAMA -
r5854:41a439d052b7
parent child
Show More
@@ -232,23 +232,25 class RepositoriesGitControllerTest < ActionController::TestCase
232 232 else
233 233 with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
234 234 ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|
235 get :diff, :id => PRJ_ID, :rev => r1
236 assert_response :success
237 assert_template 'diff'
238 assert_tag :tag => 'thead',
239 :descendant => {
240 :tag => 'th',
241 :attributes => { :class => 'filename' } ,
242 :content => /latin-1-dir\/test-#{@char_1}.txt/ ,
243 },
244 :sibling => {
245 :tag => 'tbody',
235 ['inline', 'sbs'].each do |dt|
236 get :diff, :id => PRJ_ID, :rev => r1, :type => dt
237 assert_response :success
238 assert_template 'diff'
239 assert_tag :tag => 'thead',
246 240 :descendant => {
247 :tag => 'td',
248 :attributes => { :class => /diff_in/ },
249 :content => /test-#{@char_1}.txt/
241 :tag => 'th',
242 :attributes => { :class => 'filename' } ,
243 :content => /latin-1-dir\/test-#{@char_1}.txt/ ,
244 },
245 :sibling => {
246 :tag => 'tbody',
247 :descendant => {
248 :tag => 'td',
249 :attributes => { :class => /diff_in/ },
250 :content => /test-#{@char_1}.txt/
251 }
250 252 }
251 }
253 end
252 254 end
253 255 end
254 256 end
General Comments 0
You need to be logged in to leave comments. Login now