Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/repositories_git_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 | cbce1fd3b1b7 |
comparison
equal
deleted
inserted
replaced
128:07fa8a8b56a8 | 210:0579821a129a |
---|---|
168 :sibling => { :tag => 'td', :child => { :tag => 'a', :content => /2f9c0091/ } }, | 168 :sibling => { :tag => 'td', :child => { :tag => 'a', :content => /2f9c0091/ } }, |
169 :sibling => { :tag => 'td', :content => /jsmith/ }, | 169 :sibling => { :tag => 'td', :content => /jsmith/ }, |
170 :sibling => { :tag => 'td', :content => /watcher =/ } | 170 :sibling => { :tag => 'td', :content => /watcher =/ } |
171 end | 171 end |
172 | 172 |
173 def test_annotate_at_given_revision | |
174 @repository.fetch_changesets | |
175 @repository.reload | |
176 get :annotate, :id => 3, :rev => 'deff7', :path => ['sources', 'watchers_controller.rb'] | |
177 assert_response :success | |
178 assert_template 'annotate' | |
179 assert_tag :tag => 'h2', :content => /@ deff712f/ | |
180 end | |
181 | |
173 def test_annotate_binary_file | 182 def test_annotate_binary_file |
174 get :annotate, :id => 3, :path => ['images', 'edit.png'] | 183 get :annotate, :id => 3, :path => ['images', 'edit.png'] |
175 assert_response 500 | 184 assert_response 500 |
176 assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ }, | 185 assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ }, |
177 :content => /can not be annotated/ | 186 :content => /can not be annotated/ |