@@ -131,6 +131,18 class RepositoryCvsTest < ActiveSupport::TestCase | |||||
131 | # invalid revision |
|
131 | # invalid revision | |
132 | assert @repository.cat('README', '123').blank? |
|
132 | assert @repository.cat('README', '123').blank? | |
133 | end |
|
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 | else |
|
146 | else | |
135 | puts "CVS test repository NOT FOUND. Skipping unit tests !!!" |
|
147 | puts "CVS test repository NOT FOUND. Skipping unit tests !!!" | |
136 | def test_fake; assert true end |
|
148 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now