scm: cvs: add cat test of removed file in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5407 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4bf5c42b2b
commit
9287f3cf73
|
@ -123,6 +123,10 @@ class RepositoryCvsTest < ActiveSupport::TestCase
|
|||
assert_equal 1, lines.length
|
||||
assert_equal 'CVS test repository', lines[0]
|
||||
assert_nil @repository.cat('missing.rb')
|
||||
|
||||
# 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?
|
||||
end
|
||||
else
|
||||
puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
|
||||
|
|
Loading…
Reference in New Issue