]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: add entries test in invalid revision in model.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 12 Apr 2011 05:46:21 +0000 (05:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 12 Apr 2011 05:46:21 +0000 (05:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5434 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index c7041bede5a45d0c08f226009b5492e70184997e..5892215de4ade179e260d67011227ae31f161b4c 100644 (file)
@@ -102,13 +102,19 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       assert_equal entries[2].lastrev.author, 'LANG'
     end
 
-    def test_entries_invalid
+    def test_entries_invalid_path
       @repository.fetch_changesets
       @repository.reload
       assert_nil @repository.entries('missing')
       assert_nil @repository.entries('missing', '3')
     end
 
+    def test_entries_invalid_revision
+      @repository.fetch_changesets
+      @repository.reload
+      assert_nil @repository.entries('', '123')
+    end
+
     def test_cat
       @repository.fetch_changesets
       @repository.reload