From 3e326cf25d1550a69b9781a2c0bb66c49fa4eebd Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 3 Feb 2009 22:24:02 +0000 Subject: [PATCH] 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. --- t/templateChecker.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/templateChecker.t b/t/templateChecker.t index 8461ac704..a32598470 100644 --- a/t/templateChecker.t +++ b/t/templateChecker.t @@ -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); }