Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/repositories_mercurial_controller_test.rb.svn-base @ 210:0579821a129a
Update to Redmine trunk rev 4802
author | Chris Cannam |
---|---|
date | Tue, 08 Feb 2011 13:51:46 +0000 |
parents | 07fa8a8b56a8 |
children | 051f544170fe |
comparison
equal
deleted
inserted
replaced
128:07fa8a8b56a8 | 210:0579821a129a |
---|---|
194 :content => '23', | 194 :content => '23', |
195 :attributes => { :class => 'line-num' }, | 195 :attributes => { :class => 'line-num' }, |
196 :sibling => { :tag => 'td', :content => /watcher =/ } | 196 :sibling => { :tag => 'td', :content => /watcher =/ } |
197 end | 197 end |
198 | 198 |
199 def test_annotate_at_given_revision | |
200 @repository.fetch_changesets | |
201 @repository.reload | |
202 [2, '400bb8672109', '400', 400].each do |r1| | |
203 get :annotate, :id => 3, :rev => r1, :path => ['sources', 'watchers_controller.rb'] | |
204 assert_response :success | |
205 assert_template 'annotate' | |
206 assert_tag :tag => 'h2', :content => /@ 2:400bb8672109/ | |
207 end | |
208 end | |
209 | |
199 def test_empty_revision | 210 def test_empty_revision |
200 @repository.fetch_changesets | 211 @repository.fetch_changesets |
201 @repository.reload | 212 @repository.reload |
202 ['', ' ', nil].each do |r| | 213 ['', ' ', nil].each do |r| |
203 get :revision, :id => 3, :rev => r | 214 get :revision, :id => 3, :rev => r |