Added GUID and pubDate entries to Stories. Updated tests. Fixes bug #11580

This commit is contained in:
Colin Kuskie 2010-05-25 11:42:38 -07:00
parent a6db8211c5
commit 7a1487be55
5 changed files with 17 additions and 0 deletions

View file

@ -279,8 +279,10 @@ cmp_deeply(
title => 'Story 1',
description => 'WebGUI was originally called Web Done Right.',
'link' => re('story-1$'),
guid => re('story-1$'),
author => 'JT Smith',
date => $story->get('lastModified'),
pubDate => $session->datetime->epochToMail($story->get('creationDate')),
},
'getRssData: returns correct data'
);

View file

@ -552,6 +552,8 @@ cmp_deeply(
description => ignore(),
'link' => ignore(),
date => ignore(),
guid => ignore(),
pubDate => ignore(),
author => ignore(),
},
{
@ -560,6 +562,8 @@ cmp_deeply(
'link' => ignore(),
date => ignore(),
author => ignore(),
guid => ignore(),
pubDate => ignore(),
},
{
title => 'Story 3',
@ -567,6 +571,8 @@ cmp_deeply(
'link' => ignore(),
date => ignore(),
author => ignore(),
guid => ignore(),
pubDate => ignore(),
},
],
'rssFeedItems'

View file

@ -292,6 +292,8 @@ cmp_deeply(
'link' => ignore(),
date => ignore(),
author => ignore(),
guid => ignore(),
pubDate => ignore(),
},
{
title => 'red',
@ -299,6 +301,8 @@ cmp_deeply(
'link' => ignore(),
date => ignore(),
author => ignore(),
guid => ignore(),
pubDate => ignore(),
},
{
title => 'brooks',
@ -306,6 +310,8 @@ cmp_deeply(
'link' => ignore(),
date => ignore(),
author => ignore(),
guid => ignore(),
pubDate => ignore(),
},
],
'rssFeedItems'