From ccdea234ad655fab8125e34c0bbad7d27accc886 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 21 Jan 2011 13:22:28 +0000 Subject: scm: functional test of using format_revision() for annotate (#3724). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4734 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/repositories_mercurial_controller_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/functional/repositories_mercurial_controller_test.rb') diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index d48c7909e..ae7f4226e 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -196,6 +196,17 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase :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 -- cgit v1.2.3