From: Toshi MARUYAMA Date: Fri, 10 Jun 2011 08:32:42 +0000 (+0000) Subject: Merged r6041 from trunk. X-Git-Tag: 1.2.1~44 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07f42c53d0fa352a7ca56abdff07f111a21eae15;p=redmine.git Merged r6041 from trunk. scm: mercurial: add functional test of annotate file which does not exist in *tip* is not found. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@6045 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index e521631c7..726118951 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -345,6 +345,17 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase :sibling => { :tag => 'td', :content => /watcher =/ } end + def test_annotate_not_in_tip + @repository.fetch_changesets + @repository.reload + assert @repository.changesets.size > 0 + + get :annotate, :id => PRJ_ID, + :path => ['sources', 'welcome_controller.rb'] + assert_response 404 + assert_error_tag :content => /was not found/ + end + def test_annotate_at_given_revision @repository.fetch_changesets @repository.reload