summaryrefslogtreecommitdiffstats
path: root/test/unit/repository_cvs_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 15:47:04 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-04-11 15:47:04 +0000
commit5b9655ab8e9ca93c9ad1a06ffa15a473ab9af3b3 (patch)
tree157d18db9bd234cab1bb28728d27ef3116a02643 /test/unit/repository_cvs_test.rb
parent0b68a74fc7847fcdd32814248b086714012047ab (diff)
downloadredmine-5b9655ab8e9ca93c9ad1a06ffa15a473ab9af3b3.tar.gz
redmine-5b9655ab8e9ca93c9ad1a06ffa15a473ab9af3b3.zip
scm: cvs: add invalid revision annotate test in unit model test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5414 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_cvs_test.rb')
-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 207121ca2..393945ace 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -148,6 +148,9 @@ class RepositoryCvsTest < ActiveSupport::TestCase
assert_equal '1.1', ann.revisions[0].revision
assert_equal 'LANG', ann.revisions[0].author
assert_equal 'CVS test repository', ann.lines[0]
+
+ # invalid revision
+ assert_nil @repository.annotate('README', '123')
end
else