From: Toshi MARUYAMA Date: Mon, 14 Mar 2011 13:42:37 +0000 (+0000) Subject: scm: mercurial: add tag test in functional test (#1981). X-Git-Tag: 1.2.0~712 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d317aec3ef4bea9ba9efe9f5d0fdfab6396c8db8;p=redmine.git scm: mercurial: add tag test in functional test (#1981). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5131 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index e7fb9e5e3..b67a0322d 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -170,6 +170,24 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase end end + def test_show_tag + @repository.fetch_changesets + @repository.reload + [ + @tag_char_1, + 'tag_test.00', + 'tag-init-revision' + ].each do |tag| + get :show, :id => 3, :rev => tag + assert_response :success + assert_template 'show' + assert_not_nil assigns(:entries) + assert assigns(:entries).size > 0 + assert_not_nil assigns(:changesets) + assigns(:changesets).size > 0 + end + end + def test_changes get :changes, :id => 3, :path => ['images', 'edit.png'] assert_response :success