diff options
author | Matthew Somerville <matthew@mysociety.org> | 2016-04-20 19:35:31 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2016-04-20 19:38:32 +0100 |
commit | 66eb844d7eaba7155e362dcec8a7a7db8f3dbf4c (patch) | |
tree | 25debcbb91cae5d33429ae1dc3120e6d7f627b24 /t/app/controller/about.t | |
parent | 97a01fcec2c48e379394e0127888edc2e5bbde91 (diff) |
Update tests for cobrand/template changes.
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r-- | t/app/controller/about.t | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t index 6a082a2ff..cec50abfa 100644 --- a/t/app/controller/about.t +++ b/t/app/controller/about.t @@ -1,3 +1,4 @@ +use utf8; use strict; use warnings; @@ -21,19 +22,12 @@ ok !$mech->res->is_success(), "want a bad response"; is $mech->res->code, 404, "got 404"; FixMyStreet::override_config { - ALLOWED_COBRANDS => [ 'emptyhomes' ], + ALLOWED_COBRANDS => [ 'fiksgatami' ], }, sub { - # check that geting the page as EHA produces a different page - ok $mech->host("reportemptyhomes.co.uk"), 'change host to reportemptyhomes'; - $mech->get_ok('/about'); - $mech->content_like(qr{About us ::}); - $mech->content_contains('html lang="en-gb"'); - - # check that geting the page as EHA in welsh produces a different page - ok $mech->host("cy.reportemptyhomes.co.uk"), 'host to cy.reportemptyhomes'; - $mech->get_ok('/about'); - $mech->content_like(qr{Amdanom ni ::}); - $mech->content_contains('html lang="cy"'); + ok $mech->host("www.fiksgatami.no"), 'host to fiksgatami'; + $mech->get_ok('/faq'); + $mech->content_like(qr{Ofte spurte spørsmål ::}); + $mech->content_contains('html class="no-js" lang="nb"'); }; done_testing(); |