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