]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: add invalid path entries test at unit model test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 07:01:30 +0000 (07:01 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 07:01:30 +0000 (07:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5398 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index 6e8c2354ac1fc33fccc7106cd113d2a1bdf7a6f2..9419bbae81022ad831f3e89dbc9ee2f131afa49c 100644 (file)
@@ -102,6 +102,13 @@ class RepositoryCvsTest < ActiveSupport::TestCase
       assert_equal entries[2].lastrev.author, 'LANG'
     end
 
+    def test_entries_invalid
+      @repository.fetch_changesets
+      @repository.reload
+      assert_nil @repository.entries('missing')
+      assert_nil @repository.entries('missing', '3')
+    end
+
     def test_cat
       @repository.fetch_changesets
       @repository.reload