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