From 28a8d62fe4d409369aa02cc8b84279113af4910c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 11 Apr 2011 13:13:42 +0000 Subject: [PATCH] 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 --- test/unit/repository_cvs_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index 8dfde6e73..801174340 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_test.rb @@ -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 !!!" -- 2.39.5