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

test/unit/repository_cvs_test.rb

index 207121ca2e780c0e53e5f089672c6fab4c34fa46..393945acead07d18e78d7e1560251b89c4cbbb1a 100644 (file)
@@ -148,6 +148,9 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       assert_equal '1.1', ann.revisions[0].revision
       assert_equal 'LANG', ann.revisions[0].author
       assert_equal 'CVS test repository', ann.lines[0]
+
+     # invalid revision
+     assert_nil @repository.annotate('README', '123')
    end
 
   else