scm: cvs: add test that cat returns nil if revision does not exist at model.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5409 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-04-11 13:13:42 +00:00
parent ae2304449b
commit 28a8d62fe4
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ class RepositoryCvsTest < ActiveSupport::TestCase
# sources/welcome_controller.rb is removed at revision 5.
assert @repository.cat('sources/welcome_controller.rb', '4')
assert @repository.cat('sources/welcome_controller.rb', '5').blank?
# invalid revision
assert @repository.cat('README', '123').blank?
end
else
puts "CVS test repository NOT FOUND. Skipping unit tests !!!"