From: Toshi MARUYAMA Date: Tue, 8 Mar 2011 06:10:30 +0000 (+0000) Subject: scm: git: add tags test in unit adapter test. X-Git-Tag: 1.2.0~797 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0e32fcf93e13fab882010d436144bb34ca9466ab;p=redmine.git scm: git: add tags test in unit adapter test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5045 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index c22fa936d..fd8d1c224 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -48,6 +48,13 @@ begin ], @adapter.branches end + def test_tags + assert_equal [ + "tag00.lightweight", + "tag01.annotated", + ], @adapter.tags + end + def test_getting_all_revisions assert_equal 20, @adapter.revisions('',nil,nil,:all => true).length end