Commit 7046d39155bfb71aa2b09d8d5ea73492b3423f3b

Authored by AntonioTerceiro
1 parent 2be5a656

ActionItem392: adjusting test to changed HTML


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1826 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/content_viewer_controller_test.rb
@@ -217,16 +217,16 @@ class ContentViewerControllerTest < Test::Unit::TestCase @@ -217,16 +217,16 @@ class ContentViewerControllerTest < Test::Unit::TestCase
217 page = profile.articles.create!(:name => 'myarticle', :body => 'test article', :tag_list => 'tag1, tag2') 217 page = profile.articles.create!(:name => 'myarticle', :body => 'test article', :tag_list => 'tag1, tag2')
218 218
219 get :view_page, :profile => profile.identifier, :page => [ 'myarticle' ] 219 get :view_page, :profile => profile.identifier, :page => [ 'myarticle' ]
220 - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { 220 + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => {
221 :tag => 'a', 221 :tag => 'a',
222 :attributes => { :href => "/profile/#{profile.identifier}/tag/tag1" } 222 :attributes => { :href => "/profile/#{profile.identifier}/tag/tag1" }
223 } 223 }
224 - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { 224 + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => {
225 :tag => 'a', 225 :tag => 'a',
226 :attributes => { :href => "/profile/#{profile.identifier}/tag/tag2" } 226 :attributes => { :href => "/profile/#{profile.identifier}/tag/tag2" }
227 } 227 }
228 228
229 - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { :content => /This article's tags:/ } 229 + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => { :content => /This article's tags:/ }
230 end 230 end
231 231
232 should 'not display forbidden articles' do 232 should 'not display forbidden articles' do