comparison test/functional/wiki_controller_test.rb @ 507:0c939c159af4 redmine-1.2

Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author Chris Cannam
date Thu, 14 Jul 2011 10:32:19 +0100
parents cbce1fd3b1b7
children cbb26bc654de
comparison
equal deleted inserted replaced
441:cbce1fd3b1b7 507:0c939c159af4
248 248
249 def test_annotate 249 def test_annotate
250 get :annotate, :project_id => 1, :id => 'CookBook_documentation', :version => 2 250 get :annotate, :project_id => 1, :id => 'CookBook_documentation', :version => 2
251 assert_response :success 251 assert_response :success
252 assert_template 'annotate' 252 assert_template 'annotate'
253
253 # Line 1 254 # Line 1
254 assert_tag :tag => 'tr', :child => { :tag => 'th', :attributes => {:class => 'line-num'}, :content => '1' }, 255 assert_tag :tag => 'tr', :child => {
255 :child => { :tag => 'td', :attributes => {:class => 'author'}, :content => /John Smith/ }, 256 :tag => 'th', :attributes => {:class => 'line-num'}, :content => '1', :sibling => {
256 :child => { :tag => 'td', :content => /h1\. CookBook documentation/ } 257 :tag => 'td', :attributes => {:class => 'author'}, :content => /John Smith/, :sibling => {
257 # Line 2 258 :tag => 'td', :content => /h1\. CookBook documentation/
258 assert_tag :tag => 'tr', :child => { :tag => 'th', :attributes => {:class => 'line-num'}, :content => '2' }, 259 }
259 :child => { :tag => 'td', :attributes => {:class => 'author'}, :content => /redMine Admin/ }, 260 }
260 :child => { :tag => 'td', :content => /Some updated \[\[documentation\]\] here/ } 261 }
262
263 # Line 5
264 assert_tag :tag => 'tr', :child => {
265 :tag => 'th', :attributes => {:class => 'line-num'}, :content => '5', :sibling => {
266 :tag => 'td', :attributes => {:class => 'author'}, :content => /redMine Admin/, :sibling => {
267 :tag => 'td', :content => /Some updated \[\[documentation\]\] here/
268 }
269 }
270 }
261 end 271 end
262 272
263 def test_get_rename 273 def test_get_rename
264 @request.session[:user_id] = 2 274 @request.session[:user_id] = 2
265 get :rename, :project_id => 1, :id => 'Another_page' 275 get :rename, :project_id => 1, :id => 'Another_page'