Add tests for title vs headline in RSS.
This commit is contained in:
parent
efef611b03
commit
9ccdd08a01
1 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ use Test::More; # increment this value for each test you create
|
||||||
use Test::Deep;
|
use Test::Deep;
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
|
|
||||||
my $tests = 34;
|
my $tests = 37;
|
||||||
plan tests => 1
|
plan tests => 1
|
||||||
+ $tests
|
+ $tests
|
||||||
;
|
;
|
||||||
|
|
@ -225,6 +225,10 @@ cmp_deeply(
|
||||||
'getRssData: returns correct data'
|
'getRssData: returns correct data'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$story->update({headline => 'WebGUI, Web Done Right'});
|
||||||
|
|
||||||
|
is($story->getRssData->{title}, 'WebGUI, Web Done Right', '... headline preferred over title if present');
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
#
|
#
|
||||||
# viewTemplateVariables
|
# viewTemplateVariables
|
||||||
|
|
@ -272,6 +276,9 @@ cmp_deeply(
|
||||||
'viewTemplateVariables: highlights_loop is okay'
|
'viewTemplateVariables: highlights_loop is okay'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
is($viewVariables->{title}, 'Story 1', '... title is okay');
|
||||||
|
is($viewVariables->{headline}, 'WebGUI, Web Done Right', '... headline is okay');
|
||||||
|
|
||||||
cmp_bag(
|
cmp_bag(
|
||||||
$viewVariables->{keyword_loop},
|
$viewVariables->{keyword_loop},
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue