summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 12:19:05 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 12:19:05 +0000
commit9287f3cf73d620419403fecad198480edd665362 (patch)
treee14470ae4b023ad045c4aac0974f51eb75b2e386 /test/unit/repository_cvs_test.rb
parent4bf5c42b2bfc2fc424dfdda5f2ea4ef2fc2df657 (diff)
downloadredmine-9287f3cf73d620419403fecad198480edd665362.tar.gz
redmine-9287f3cf73d620419403fecad198480edd665362.zip
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
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-rw-r--r--test/unit/repository_cvs_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index 7e4bfd2e2..8dfde6e73 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -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 !!!"