Add feed support to StoryTopic.

This commit is contained in:
Colin Kuskie 2009-04-22 04:59:23 +00:00
parent 070df97708
commit f2451e2f7e
2 changed files with 66 additions and 1 deletions

View file

@ -31,7 +31,7 @@ my $session = WebGUI::Test->session;
#----------------------------------------------------------------------------
# Tests
my $tests = 17;
my $tests = 18;
plan tests => 1 + $tests;
#----------------------------------------------------------------------------
@ -273,6 +273,43 @@ cmp_deeply(
);
$topic->{_exportMode} = 0;
################################################################
#
# getRssFeedItems
#
################################################################
$topic->update({
storiesPer => 3,
});
cmp_deeply(
$topic->getRssFeedItems(),
[
{
title => 'bogs',
description => ignore(),
'link' => ignore(),
date => ignore(),
author => ignore(),
},
{
title => 'red',
description => ignore(),
'link' => ignore(),
date => ignore(),
author => ignore(),
},
{
title => 'brooks',
description => ignore(),
'link' => ignore(),
date => ignore(),
author => ignore(),
},
],
'rssFeedItems'
);
}
#----------------------------------------------------------------------------