@@ -260,17 +260,19 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
260 | @repository.reload |
|
260 | @repository.reload | |
261 | [4, '4', 'def6d2f1254a'].each do |r1| |
|
261 | [4, '4', 'def6d2f1254a'].each do |r1| | |
262 | # Full diff of changeset 4 |
|
262 | # Full diff of changeset 4 | |
263 | get :diff, :id => PRJ_ID, :rev => r1 |
|
263 | ['inline', 'sbs'].each do |dt| | |
264 | assert_response :success |
|
264 | get :diff, :id => PRJ_ID, :rev => r1, :type => dt | |
265 | assert_template 'diff' |
|
265 | assert_response :success | |
266 | if @diff_c_support |
|
266 | assert_template 'diff' | |
267 | # Line 22 removed |
|
267 | if @diff_c_support | |
268 | assert_tag :tag => 'th', |
|
268 | # Line 22 removed | |
269 | :content => '22', |
|
269 | assert_tag :tag => 'th', | |
270 |
|
|
270 | :content => '22', | |
271 |
|
|
271 | :sibling => { :tag => 'td', | |
272 |
|
|
272 | :attributes => { :class => /diff_out/ }, | |
273 | assert_tag :tag => 'h2', :content => /4:def6d2f1254a/ |
|
273 | :content => /def remove/ } | |
|
274 | assert_tag :tag => 'h2', :content => /4:def6d2f1254a/ | |||
|
275 | end | |||
274 | end |
|
276 | end | |
275 | end |
|
277 | end | |
276 | end |
|
278 | end |
General Comments 0
You need to be logged in to leave comments.
Login now