]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: add test annotate with revision in unit model test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 15:46:07 +0000 (15:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 15:46:07 +0000 (15:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5413 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index c29a192039e47288e762e12d881f7b1c255a6a20..207121ca2e780c0e53e5f089672c6fab4c34fa46 100644 (file)
@@ -141,6 +141,13 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       assert_equal '1.2', ann.revisions[1].revision
       assert_equal 'LANG', ann.revisions[1].author
       assert_equal 'with one change', ann.lines[1]
+
+      ann = @repository.annotate('README', '1')
+      assert ann
+      assert_equal 1, ann.revisions.length
+      assert_equal '1.1', ann.revisions[0].revision
+      assert_equal 'LANG', ann.revisions[0].author
+      assert_equal 'CVS test repository', ann.lines[0]
    end
 
   else