##// END OF EJS Templates
scm: git: use diff_max_lines_displayed setting at test_diff_with_rev_and_path of functional test (#11752)...
Toshi MARUYAMA -
r10068:3581782ec2a4
parent child
Show More
@@ -290,22 +290,24 class RepositoriesGitControllerTest < ActionController::TestCase
290 @repository.fetch_changesets
290 @repository.fetch_changesets
291 @project.reload
291 @project.reload
292 assert_equal NUM_REV, @repository.changesets.count
292 assert_equal NUM_REV, @repository.changesets.count
293 # Full diff of changeset 2f9c0091
293 with_settings :diff_max_lines_displayed => 1000 do
294 ['inline', 'sbs'].each do |dt|
294 # Full diff of changeset 2f9c0091
295 get :diff,
295 ['inline', 'sbs'].each do |dt|
296 :id => PRJ_ID,
296 get :diff,
297 :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
297 :id => PRJ_ID,
298 :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
298 :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
299 :type => dt
299 :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
300 assert_response :success
300 :type => dt
301 assert_template 'diff'
301 assert_response :success
302 # Line 22 removed
302 assert_template 'diff'
303 assert_tag :tag => 'th',
303 # Line 22 removed
304 :content => '22',
304 assert_tag :tag => 'th',
305 :sibling => { :tag => 'td',
305 :content => '22',
306 :attributes => { :class => /diff_out/ },
306 :sibling => { :tag => 'td',
307 :content => /def remove/ }
307 :attributes => { :class => /diff_out/ },
308 assert_tag :tag => 'h2', :content => /2f9c0091/
308 :content => /def remove/ }
309 assert_tag :tag => 'h2', :content => /2f9c0091/
310 end
309 end
311 end
310 end
312 end
311
313
General Comments 0
You need to be logged in to leave comments. Login now