diff test/functional/.svn/text-base/repositories_mercurial_controller_test.rb.svn-base @ 210:0579821a129a

Update to Redmine trunk rev 4802
author Chris Cannam
date Tue, 08 Feb 2011 13:51:46 +0000
parents 07fa8a8b56a8
children 051f544170fe
line wrap: on
line diff
--- a/test/functional/.svn/text-base/repositories_mercurial_controller_test.rb.svn-base	Wed Jan 19 15:04:22 2011 +0000
+++ b/test/functional/.svn/text-base/repositories_mercurial_controller_test.rb.svn-base	Tue Feb 08 13:51:46 2011 +0000
@@ -196,6 +196,17 @@
                  :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