From 1690ca25baad4c60dd6c81e35139b53f101c3272 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Wed, 13 Feb 2008 23:24:35 +0000 Subject: [PATCH] ActionItem41: fixing test for Community --- test/unit/community_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/test/unit/community_test.rb b/test/unit/community_test.rb index b4095e8..38d68bf 100644 --- a/test/unit/community_test.rb +++ b/test/unit/community_test.rb @@ -38,6 +38,14 @@ class CommunityTest < Test::Unit::TestCase assert c.boxes[2].blocks.map(&:class).include?(MembersBlock) assert c.boxes[2].blocks.map(&:class).include?(TagsBlock) + assert_equal 5, c.blocks.size + end + + should 'get a default home page and RSS feed' do + community = Community.create!(:name => 'my new community') + + assert_kind_of Article, community.home_page + assert_kind_of RssFeed, community.articles.find_by_path('feed') end end -- libgit2 0.21.2