]> source.dussan.org Git - redmine.git/commitdiff
scm: git: add browsing tag test in functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 08:16:23 +0000 (08:16 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Mar 2011 08:16:23 +0000 (08:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5121 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index b7d86f1b9f1d5608f4ee3b996d4dcf246266be30..5cde24748cc9bdc5c4be21703d32bff9dbeea0ee 100644 (file)
@@ -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