aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-21 12:56:42 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-21 12:56:42 +0000
commit6bda0ade833b6e7caf20b3be83d4e8448139ec55 (patch)
tree42f75f89c05dd03f27a5dfcd2d8a9ab9a16452c4
parentaca40d6e5da5736515748fc33ff100d9d2b2ee55 (diff)
Replace use of template_header.
-rwxr-xr-xt/Page.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/Page.t b/t/Page.t
index f57c56092..cbd724f75 100755
--- a/t/Page.t
+++ b/t/Page.t
@@ -71,9 +71,12 @@ sub test_header() {
# Test that template passed is rendered
$params{'template'} = 'test';
- $html = Page::template_header('test', $q, '/../t/templates/' . $q->{site} . '/', title=>'My test title', lang=>'en-gb');
+ $html = Page::template_include('test', $q,
+ '/../t/templates/' . $q->{site} . '/',
+ title => 'My test title', lang => 'en-gb'
+ );
+
like ($html, qr/My test header template/, 'named template rendered ok');
-
return 1;
}