From 7046d39155bfb71aa2b09d8d5ea73492b3423f3b Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 21 May 2008 21:42:36 +0000 Subject: [PATCH] ActionItem392: adjusting test to changed HTML --- test/functional/content_viewer_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index 5275826..d1ab7cf 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -217,16 +217,16 @@ class ContentViewerControllerTest < Test::Unit::TestCase page = profile.articles.create!(:name => 'myarticle', :body => 'test article', :tag_list => 'tag1, tag2') get :view_page, :profile => profile.identifier, :page => [ 'myarticle' ] - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => { :tag => 'a', :attributes => { :href => "/profile/#{profile.identifier}/tag/tag1" } } - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => { :tag => 'a', :attributes => { :href => "/profile/#{profile.identifier}/tag/tag2" } } - assert_tag :tag => 'div', :attributes => { :class => 'article-tags' }, :descendant => { :content => /This article's tags:/ } + assert_tag :tag => 'div', :attributes => { :id => 'article-tags' }, :descendant => { :content => /This article's tags:/ } end should 'not display forbidden articles' do -- libgit2 0.21.2