From 7679e33d9ae39c3e0d8878fc43490fc62db195e0 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 4 Jul 2008 17:55:16 +0000 Subject: [PATCH] ActionItem408: changing test to assure that there _is_ a "set as homepage" button for folders --- test/functional/cms_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 07a1e11..1928223 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -89,11 +89,11 @@ class CmsControllerTest < Test::Unit::TestCase assert_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" } end - should 'not display set as home page link to folder' do + should 'display set as home page link to folder' do a = Folder.new(:name => 'article folder'); profile.articles << a; a.save! Article.stubs(:short_description).returns('bli') get :index, :profile => profile.identifier - assert_no_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" } + assert_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" } end should 'be able to set home page' do -- libgit2 0.21.2