diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 15:46:07 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-04-11 15:46:07 +0000 |
commit | 0b68a74fc7847fcdd32814248b086714012047ab (patch) | |
tree | 3430176050a427d491411276b94db2c3221c2375 /test/unit/repository_cvs_test.rb | |
parent | e9a33eff147cba52eee854f52045e984c0acf45a (diff) | |
download | redmine-0b68a74fc7847fcdd32814248b086714012047ab.tar.gz redmine-0b68a74fc7847fcdd32814248b086714012047ab.zip |
scm: cvs: add test annotate with revision in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5413 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r-- | test/unit/repository_cvs_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index c29a19203..207121ca2 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -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 |