From dfe481cc4f27e377441bfa3878872fe54d378026 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 15 Feb 2008 21:18:20 +0000 Subject: [PATCH] ActionItem154: adding communities block to person --- app/models/person.rb | 1 + test/unit/person_test.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/person.rb b/app/models/person.rb index 88919e8..5e6ae8a 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -74,6 +74,7 @@ class Person < Profile # right area self.boxes[2].blocks << TagsBlock.new + self.boxes[2].blocks << CommunitiesBlock.new true end diff --git a/test/unit/person_test.rb b/test/unit/person_test.rb index 7f1a266..70dbafe 100644 --- a/test/unit/person_test.rb +++ b/test/unit/person_test.rb @@ -136,9 +136,10 @@ class PersonTest < Test::Unit::TestCase assert p.boxes[1].blocks.map(&:class).include?(RecentDocumentsBlock), 'person must have a RecentDocumentsBlock upon creation' assert p.boxes[2].blocks.map(&:class).include?(TagsBlock), 'person must have a Tags Block upon creation' + assert p.boxes[2].blocks.map(&:class).include?(CommunitiesBlock), 'person must have a CommunitiesBlock upon creation' # TODO check also for a "friends" block - assert_equal 4, p.blocks.size + assert_equal 5, p.blocks.size end end -- libgit2 0.21.2