]> source.dussan.org Git - redmine.git/commitdiff
scm: cvs: add test that cat returns nil if revision does not exist at model.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 13:13:42 +0000 (13:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 11 Apr 2011 13:13:42 +0000 (13:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5409 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_cvs_test.rb

index 8dfde6e737bd3f5ca14a8e73c3f07369853739e5..8011743404c77ff7046e6d88494a9e0e9f36a4f6 100644 (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 !!!"