summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 07:01:30 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 07:01:30 +0000
commitd595bed7ef116259eb40a850bcb7c57c682f3d7e (patch)
treefee94d1a9309d258d2fe27de460ccb1c3d21af70 /test/unit/repository_cvs_test.rb
parent25aa4d4fa046346cc2920c083034638dced577fa (diff)
downloadredmine-d595bed7ef116259eb40a850bcb7c57c682f3d7e.tar.gz
redmine-d595bed7ef116259eb40a850bcb7c57c682f3d7e.zip
scm: cvs: add invalid path entries test at unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5398 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 6e8c2354a..9419bbae8 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -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