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:
parent
ae2304449b
commit
28a8d62fe4
|
@ -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 !!!"
|
||||
|
|
Loading…
Reference in New Issue