summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:46:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-12 05:46:21 +0000
commitcad14abea7dbc32ba5d2f0ac9a42ee90b944ebe7 (patch)
tree9ed3fa59b483d55f7bf022e5704b59504ee58684 /test/unit/repository_cvs_test.rb
parent37c6480e4453c769ffcacc96b6f7d1378fc9d582 (diff)
downloadredmine-cad14abea7dbc32ba5d2f0ac9a42ee90b944ebe7.tar.gz
redmine-cad14abea7dbc32ba5d2f0ac9a42ee90b944ebe7.zip
scm: cvs: add entries test in invalid revision in model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5434 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index c7041bede..5892215de 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -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