@@ -367,6 +367,19 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||
|
367 | 367 | :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param] |
|
368 | 368 | assert_response :success |
|
369 | 369 | assert_template 'annotate' |
|
370 | ||
|
371 | assert_select 'tr' do | |
|
372 | assert_select 'th.line-num', :text => '1' | |
|
373 | assert_select 'td.revision', :text => '4' | |
|
374 | assert_select 'td.author', :text => 'jp' | |
|
375 | assert_select 'td', :text => /stdio.h/ | |
|
376 | end | |
|
377 | # Same revision | |
|
378 | assert_select 'tr' do | |
|
379 | assert_select 'th.line-num', :text => '2' | |
|
380 | assert_select 'td.revision', :text => '' | |
|
381 | assert_select 'td.author', :text => '' | |
|
382 | end | |
|
370 | 383 | end |
|
371 | 384 | |
|
372 | 385 | def test_annotate_at_given_revision |
General Comments 0
You need to be logged in to leave comments.
Login now