diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
commit | 7da8f20c36726fd205ae48130f07db49fab745e0 (patch) | |
tree | 9573ce8c11fd8a067ad74a1aedb452784654b076 /t/Page.t | |
parent | 36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff) | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 't/Page.t')
-rwxr-xr-x | t/Page.t | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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-header', $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; } |