From: Toshi MARUYAMA Date: Mon, 11 Apr 2011 13:13:42 +0000 (+0000) Subject: scm: cvs: add test that cat returns nil if revision does not exist at model. X-Git-Tag: 1.2.0~443 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28a8d62fe4d409369aa02cc8b84279113af4910c;p=redmine.git 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 --- 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 !!!"