diff --git a/app/models/person.rb b/app/models/person.rb index 5e6ae8a..7871291 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -75,6 +75,7 @@ class Person < Profile # right area self.boxes[2].blocks << TagsBlock.new self.boxes[2].blocks << CommunitiesBlock.new + self.boxes[2].blocks << EnterprisesBlock.new true end diff --git a/test/unit/person_test.rb b/test/unit/person_test.rb index 70dbafe..301da83 100644 --- a/test/unit/person_test.rb +++ b/test/unit/person_test.rb @@ -137,9 +137,10 @@ class PersonTest < Test::Unit::TestCase 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' + assert p.boxes[2].blocks.map(&:class).include?(EnterprisesBlock), 'person must have a EnterprisesBlock upon creation' # TODO check also for a "friends" block - assert_equal 5, p.blocks.size + assert_equal 6, p.blocks.size end end -- libgit2 0.21.2