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 | |
parent | 36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff) | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 't')
-rwxr-xr-x | t/Cobrand.t | 2 | ||||
-rwxr-xr-x | t/Page.t | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/t/Cobrand.t b/t/Cobrand.t index f6c2e9c87..1f38ec605 100755 --- a/t/Cobrand.t +++ b/t/Cobrand.t @@ -51,7 +51,7 @@ sub test_disambiguate_location { $q = new MockQuery('nosite'); $s = 'London Road'; $s = Cobrand::disambiguate_location('nosite', $s, $q); - ok($s eq 'London Road', 'should return location string as passed if no cobrand module exists') or diag("Got $s"); + ok($s eq 'London Road&gl=uk', 'should return location string as passed if no cobrand module exists') or diag("Got $s"); } @@ -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; } |