##// END OF EJS Templates
scm: cvs: add annotate test of HEAD revision in unit model test....
Toshi MARUYAMA -
r5291:9df194ff165b
parent child
Show More
@@ -131,6 +131,18 class RepositoryCvsTest < ActiveSupport::TestCase
131 131 # invalid revision
132 132 assert @repository.cat('README', '123').blank?
133 133 end
134
135 def test_annotate
136 @repository.fetch_changesets
137 @repository.reload
138 ann = @repository.annotate('README')
139 assert ann
140 assert_equal 2, ann.revisions.length
141 assert_equal '1.2', ann.revisions[1].revision
142 assert_equal 'LANG', ann.revisions[1].author
143 assert_equal 'with one change', ann.lines[1]
144 end
145
134 146 else
135 147 puts "CVS test repository NOT FOUND. Skipping unit tests !!!"
136 148 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now