summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_mercurial_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 07:05:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-06-10 07:05:36 +0000
commitdfe16e1bca65bf36dcfe847a99bf9508afaf3fbf (patch)
tree4985c1316c37fa5f81167286f5917a601d73a0b6 /test/functional/repositories_mercurial_controller_test.rb
parent4c7f5b4e41308e6dc906c7e79f0b44afa92352f2 (diff)
downloadredmine-dfe16e1bca65bf36dcfe847a99bf9508afaf3fbf.tar.gz
redmine-dfe16e1bca65bf36dcfe847a99bf9508afaf3fbf.zip
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/trunk@6041 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index 23c3b71bf..9fb88b0d2 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -354,6 +354,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