From: Toshi MARUYAMA Date: Mon, 14 Mar 2011 08:16:23 +0000 (+0000) Subject: scm: git: add browsing tag test in functional test. X-Git-Tag: 1.2.0~722 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb2dc02a676b5152b5c7520a2d6cdef47d8431f5;p=redmine.git scm: git: add browsing tag test in functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5121 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index b7d86f1b9..5cde24748 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -91,6 +91,23 @@ class RepositoriesGitControllerTest < ActionController::TestCase assigns(:changesets).size > 0 end + def test_browse_tag + @repository.fetch_changesets + @repository.reload + [ + "tag00.lightweight", + "tag01.annotated", + ].each do |t1| + get :show, :id => 3, :rev => t1 + assert_response :success + assert_template 'show' + assert_not_nil assigns(:entries) + assigns(:entries).size > 0 + assert_not_nil assigns(:changesets) + assigns(:changesets).size > 0 + end + end + def test_browse_directory @repository.fetch_changesets @repository.reload