Update this test to work with the new RSS Aspect.

This commit is contained in:
Colin Kuskie 2009-04-02 04:41:43 +00:00
parent d05d49d47a
commit b6e980893e

View file

@ -32,7 +32,7 @@ use WebGUI::Asset::Wobject::Collaboration;
use WebGUI::Asset::Post;
use WebGUI::Asset::Wobject::Layout;
use Data::Dumper;
use Test::More tests => 8; # increment this value for each test you create
use Test::More tests => 7; # increment this value for each test you create
my $session = WebGUI::Test->session;
@ -60,7 +60,7 @@ ok(defined $collab->get('groupToEditPost'), 'groupToEditPost field is defined');
# Verify sane defaults
cmp_ok($collab->get('groupToEditPost'), 'eq', $collab->get('groupIdEdit'), 'groupToEditPost defaults to groupIdEdit correctly');
is($collab->get('rssCapableRssLimit'), 10, 'rssCapableRssLimit is set to the default');
is($collab->get('itemsPerFeed'), 25, 'itemsPerFeed is set to the default');
# finally, add the post to the collaboration system
my $props = {
@ -88,10 +88,8 @@ $post = $collab->addChild($props,
skipAutoCommitWorkflows => 1,
});
my $rssitems = $collab->getRssItems();
is($rssitems, 2, 'rssitems set to number of posts added');
is($collab->get('rssCapableRssLimit'), 10, 'rssCapableRssLimit is set to the default');
my $rssitems = $collab->getRssFeedItems();
is(scalar@{ $rssitems }, 2, 'rssitems set to number of posts added');
TODO: {
local $TODO = "Tests to make later";