##// END OF EJS Templates
Adds assertions for subversion annotate....
Jean-Philippe Lang -
r9924:cc79feabe2d1
parent child
Show More
@@ -367,6 +367,19 class RepositoriesSubversionControllerTest < ActionController::TestCase
367 :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
367 :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
368 assert_response :success
368 assert_response :success
369 assert_template 'annotate'
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 end
383 end
371
384
372 def test_annotate_at_given_revision
385 def test_annotate_at_given_revision
General Comments 0
You need to be logged in to leave comments. Login now