Mercurial > hg > soundsoftware-site
diff 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 |
line wrap: on
line diff
--- a/test/functional/wiki_controller_test.rb Mon Jun 06 14:24:13 2011 +0100 +++ b/test/functional/wiki_controller_test.rb Thu Jul 14 10:32:19 2011 +0100 @@ -250,14 +250,24 @@ get :annotate, :project_id => 1, :id => 'CookBook_documentation', :version => 2 assert_response :success assert_template 'annotate' + # Line 1 - assert_tag :tag => 'tr', :child => { :tag => 'th', :attributes => {:class => 'line-num'}, :content => '1' }, - :child => { :tag => 'td', :attributes => {:class => 'author'}, :content => /John Smith/ }, - :child => { :tag => 'td', :content => /h1\. CookBook documentation/ } - # Line 2 - assert_tag :tag => 'tr', :child => { :tag => 'th', :attributes => {:class => 'line-num'}, :content => '2' }, - :child => { :tag => 'td', :attributes => {:class => 'author'}, :content => /redMine Admin/ }, - :child => { :tag => 'td', :content => /Some updated \[\[documentation\]\] here/ } + assert_tag :tag => 'tr', :child => { + :tag => 'th', :attributes => {:class => 'line-num'}, :content => '1', :sibling => { + :tag => 'td', :attributes => {:class => 'author'}, :content => /John Smith/, :sibling => { + :tag => 'td', :content => /h1\. CookBook documentation/ + } + } + } + + # Line 5 + assert_tag :tag => 'tr', :child => { + :tag => 'th', :attributes => {:class => 'line-num'}, :content => '5', :sibling => { + :tag => 'td', :attributes => {:class => 'author'}, :content => /redMine Admin/, :sibling => { + :tag => 'td', :content => /Some updated \[\[documentation\]\] here/ + } + } + } end def test_get_rename