Commit 1690ca25baad4c60dd6c81e35139b53f101c3272
1 parent
08f81d3d
Exists in
master
and in
29 other branches
ActionItem41: fixing test for Community
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1363 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/unit/community_test.rb
@@ -38,6 +38,14 @@ class CommunityTest < Test::Unit::TestCase | @@ -38,6 +38,14 @@ class CommunityTest < Test::Unit::TestCase | ||
38 | assert c.boxes[2].blocks.map(&:class).include?(MembersBlock) | 38 | assert c.boxes[2].blocks.map(&:class).include?(MembersBlock) |
39 | assert c.boxes[2].blocks.map(&:class).include?(TagsBlock) | 39 | assert c.boxes[2].blocks.map(&:class).include?(TagsBlock) |
40 | 40 | ||
41 | + assert_equal 5, c.blocks.size | ||
42 | + end | ||
43 | + | ||
44 | + should 'get a default home page and RSS feed' do | ||
45 | + community = Community.create!(:name => 'my new community') | ||
46 | + | ||
47 | + assert_kind_of Article, community.home_page | ||
48 | + assert_kind_of RssFeed, community.articles.find_by_path('feed') | ||
41 | end | 49 | end |
42 | 50 | ||
43 | end | 51 | end |