Commit 14d46dcb681366d46fc156312ea9138e8ff88bbb
1 parent
cee67307
Exists in
master
and in
22 other branches
ActionItem280: add Friends block to person and fix some tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1744 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
app/models/person.rb
test/functional/search_controller_test.rb
... | ... | @@ -451,7 +451,7 @@ class SearchControllerTest < Test::Unit::TestCase |
451 | 451 | CategoryFinder.expects(:new).with(@category).returns(finger) |
452 | 452 | |
453 | 453 | get :category_index, :category_path => [ 'my-category' ] |
454 | - assert_same recent, assigns(:results)[:recent_comments] | |
454 | + assert_same recent, assigns(:results)[:comments] | |
455 | 455 | end |
456 | 456 | |
457 | 457 | should 'list most commented articles in the category' do | ... | ... |
test/unit/person_test.rb
... | ... | @@ -138,9 +138,9 @@ class PersonTest < Test::Unit::TestCase |
138 | 138 | assert p.boxes[2].blocks.map(&:class).include?(TagsBlock), 'person must have a Tags Block upon creation' |
139 | 139 | assert p.boxes[2].blocks.map(&:class).include?(CommunitiesBlock), 'person must have a CommunitiesBlock upon creation' |
140 | 140 | assert p.boxes[2].blocks.map(&:class).include?(EnterprisesBlock), 'person must have a EnterprisesBlock upon creation' |
141 | - # TODO check also for a "friends" block | |
141 | + assert p.boxes[2].blocks.map(&:class).include?(FriendsBlock), 'person must have a FriendsBlock upon creation' | |
142 | 142 | |
143 | - assert_equal 6, p.blocks.size | |
143 | + assert_equal 7, p.blocks.size | |
144 | 144 | end |
145 | 145 | |
146 | 146 | should 'have friends' do | ... | ... |