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
This commit is contained in:
parent
0b68a74fc7
commit
5b9655ab8e
|
@ -148,6 +148,9 @@ class RepositoryCvsTest < ActiveSupport::TestCase
|
||||||
assert_equal '1.1', ann.revisions[0].revision
|
assert_equal '1.1', ann.revisions[0].revision
|
||||||
assert_equal 'LANG', ann.revisions[0].author
|
assert_equal 'LANG', ann.revisions[0].author
|
||||||
assert_equal 'CVS test repository', ann.lines[0]
|
assert_equal 'CVS test repository', ann.lines[0]
|
||||||
|
|
||||||
|
# invalid revision
|
||||||
|
assert_nil @repository.annotate('README', '123')
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue