summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 13:13:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 13:13:42 +0000
commit28a8d62fe4d409369aa02cc8b84279113af4910c (patch)
tree87262c7a416425c2368f25edf0589595392def99 /test/unit
parentae2304449b23ef6b277b7cdc6972cffe5461403e (diff)
downloadredmine-28a8d62fe4d409369aa02cc8b84279113af4910c.tar.gz
redmine-28a8d62fe4d409369aa02cc8b84279113af4910c.zip
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
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/repository_cvs_test.rb3
1 files changed, 3 insertions, 0 deletions
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 !!!"