comparison test/functional/.svn/text-base/repositories_git_controller_test.rb.svn-base @ 246:eeebe205a056 cannam

* Merge from default branch, bringing us up to SVN trunk rev 4993
author Chris Cannam
date Thu, 03 Mar 2011 12:02:03 +0000
parents 0579821a129a
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
138:fca2657f4aa5 246:eeebe205a056
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/