Update the templateChecker test to look at extra head tags instead of the defunct

headBlock.  Add URL to the output to make working with wgd easy.
This commit is contained in:
Colin Kuskie 2009-02-03 22:24:02 +00:00
parent 10dcc25aef
commit 3e326cf25d

View file

@ -53,12 +53,12 @@ my @templateLabels;
while (my $templateAsset = $getATemplate->()) {
my $template = $templateAsset->get('template');
my $header = $templateAsset->get('headBlock');
my $header = $templateAsset->get('extraHeadTags');
my $match = ($template =~ $macro);
if ($header) {
$match ||= ($header =~ $macro);
}
ok(!$match, sprintf "%s: (%s) has no bad gateway macros", $templateAsset->getTitle, $templateAsset->getId);
ok(!$match, sprintf "%s: %s (%s) has no bad gateway macros", $templateAsset->getTitle, $templateAsset->getId, $templateAsset->getUrl);
}