:sibling => { :tag => 'td', :content => /watcher =/ }
end
+ def test_annotate_at_given_revision
+ @repository.fetch_changesets
+ @repository.reload
+ get :annotate, :id => 3, :rev => 'deff7', :path => ['sources', 'watchers_controller.rb']
+ assert_response :success
+ assert_template 'annotate'
+ assert_tag :tag => 'h2', :content => /@ deff712f/
+ end
+
def test_annotate_binary_file
get :annotate, :id => 3, :path => ['images', 'edit.png']
assert_response 500
:sibling => { :tag => 'td', :content => /watcher =/ }
end
+ def test_annotate_at_given_revision
+ @repository.fetch_changesets
+ @repository.reload
+ [2, '400bb8672109', '400', 400].each do |r1|
+ get :annotate, :id => 3, :rev => r1, :path => ['sources', 'watchers_controller.rb']
+ assert_response :success
+ assert_template 'annotate'
+ assert_tag :tag => 'h2', :content => /@ 2:400bb8672109/
+ end
+ end
+
def test_empty_revision
@repository.fetch_changesets
@repository.reload
assert_response :success
assert_template 'annotate'
end
+
+ def test_annotate_at_given_revision
+ get :annotate, :id => 1, :rev => 8, :path => ['subversion_test', 'helloworld.c']
+ assert_response :success
+ assert_template 'annotate'
+ assert_tag :tag => 'h2', :content => /@ 8/
+ end
else
puts "Subversion test repository NOT FOUND. Skipping functional tests !!!"
def test_fake; assert true end