From b37c7bda5b88e7a20e2ca6d891069fa1ae6c0a82 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Thu, 27 Jan 2011 17:38:02 -0300 Subject: [PATCH] Changed blocks footer to link to browse --- app/models/communities_block.rb | 2 +- app/models/people_block.rb | 2 +- test/unit/communities_block_test.rb | 2 +- test/unit/people_block_test.rb | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/communities_block.rb b/app/models/communities_block.rb index f027920..d6f56be 100644 --- a/app/models/communities_block.rb +++ b/app/models/communities_block.rb @@ -21,7 +21,7 @@ class CommunitiesBlock < ProfileListBlock end when Environment lambda do - link_to s_('communities|View all'), :controller => 'search', :action => 'assets', :asset => 'communities' + link_to s_('communities|View all'), :controller => 'browse', :action => 'communities' end else '' diff --git a/app/models/people_block.rb b/app/models/people_block.rb index 913144b..c3b43dc 100644 --- a/app/models/people_block.rb +++ b/app/models/people_block.rb @@ -18,7 +18,7 @@ class PeopleBlock < ProfileListBlock def footer lambda do - link_to _('View all'), :controller => 'search', :action => 'assets', :asset => 'people' + link_to _('View all'), :controller => 'browse', :action => 'people' end end diff --git a/test/unit/communities_block_test.rb b/test/unit/communities_block_test.rb index 9358764..422027b 100644 --- a/test/unit/communities_block_test.rb +++ b/test/unit/communities_block_test.rb @@ -43,7 +43,7 @@ class CommunitiesBlockTest < Test::Unit::TestCase block = CommunitiesBlock.new block.expects(:owner).returns(env) - expects(:link_to).with('View all', :controller => 'search', :action => 'assets', :asset => 'communities') + expects(:link_to).with('View all', :controller => "browse", :action => 'communities') instance_eval(&block.footer) end diff --git a/test/unit/people_block_test.rb b/test/unit/people_block_test.rb index a6ca468..c26c112 100644 --- a/test/unit/people_block_test.rb +++ b/test/unit/people_block_test.rb @@ -35,12 +35,12 @@ class PeopleBlockTest < ActiveSupport::TestCase assert_match(/#{person2.name}/, content) end - should 'link to people directory' do + should 'link to browse people' do block = PeopleBlock.new block.stubs(:owner).returns(Environment.default) expects(:_).with('View all').returns('View all people') - expects(:link_to).with('View all people', :controller => 'search', :action => 'assets', :asset => 'people') + expects(:link_to).with('View all people', :controller => 'browse', :action => 'people') instance_eval(&block.footer) end -- libgit2 0.21.2