Commit 7679e33d9ae39c3e0d8878fc43490fc62db195e0

Authored by AntonioTerceiro
1 parent 170aeb13

ActionItem408: changing test to assure that there _is_ a "set as

homepage" button for folders

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2154 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
test/functional/cms_controller_test.rb
@@ -89,11 +89,11 @@ class CmsControllerTest < Test::Unit::TestCase @@ -89,11 +89,11 @@ class CmsControllerTest < Test::Unit::TestCase
89 assert_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" } 89 assert_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" }
90 end 90 end
91 91
92 - should 'not display set as home page link to folder' do 92 + should 'display set as home page link to folder' do
93 a = Folder.new(:name => 'article folder'); profile.articles << a; a.save! 93 a = Folder.new(:name => 'article folder'); profile.articles << a; a.save!
94 Article.stubs(:short_description).returns('bli') 94 Article.stubs(:short_description).returns('bli')
95 get :index, :profile => profile.identifier 95 get :index, :profile => profile.identifier
96 - assert_no_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" } 96 + assert_tag :tag => 'a', :content => 'Use as homepage', :attributes => { :href => "/myprofile/#{profile.identifier}/cms/set_home_page/#{a.id}" }
97 end 97 end
98 98
99 should 'be able to set home page' do 99 should 'be able to set home page' do