require File.dirname(__FILE__) + '/../test_helper' class RssFeedTest < Test::Unit::TestCase should 'indicate the correct mime/type' do assert_equal 'text/xml', RssFeed.new.mime_type end should 'store settings in a hash serialized into body field' do flunk 'pending' end should 'list recent articles of profile when top-level' do profile = create_user('testuser').person a1 = profile.articles.build(:name => 'article 1'); a1.save! a2 = profile.articles.build(:name => 'article 2'); a2.save! a3 = profile.articles.build(:name => 'article 3'); a3.save! feed = RssFeed.new(:name => 'feed') feed.profile = profile feed.save! rss = feed.data assert_match /