Commit dfe481cc4f27e377441bfa3878872fe54d378026
1 parent
43cf6161
Exists in
master
and in
29 other branches
ActionItem154: adding communities block to person
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1397 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
app/models/person.rb
test/unit/person_test.rb
... | ... | @@ -136,9 +136,10 @@ class PersonTest < Test::Unit::TestCase |
136 | 136 | assert p.boxes[1].blocks.map(&:class).include?(RecentDocumentsBlock), 'person must have a RecentDocumentsBlock upon creation' |
137 | 137 | |
138 | 138 | assert p.boxes[2].blocks.map(&:class).include?(TagsBlock), 'person must have a Tags Block upon creation' |
139 | + assert p.boxes[2].blocks.map(&:class).include?(CommunitiesBlock), 'person must have a CommunitiesBlock upon creation' | |
139 | 140 | # TODO check also for a "friends" block |
140 | 141 | |
141 | - assert_equal 4, p.blocks.size | |
142 | + assert_equal 5, p.blocks.size | |
142 | 143 | end |
143 | 144 | |
144 | 145 | end | ... | ... |