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