diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-23 22:10:37 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-23 22:10:37 +0000 |
commit | 3ef36c3c9b5393c78c0af59b9f4e3f4528472357 (patch) | |
tree | 74e1118ae16bdd0e7cbb9f206248883c59de51e0 /t/app/controller/about.t | |
parent | b6ef8d10c3ec7164c65d81b75ecf2662952aeb6d (diff) |
More work on the Cobrand and setting for request
test to see welsh about us page
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r-- | t/app/controller/about.t | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t index 2ac628367..adbce8f25 100644 --- a/t/app/controller/about.t +++ b/t/app/controller/about.t @@ -11,8 +11,14 @@ $mech->get_ok('/about'); $mech->content_contains('FixMyStreet.com'); # check that geting the page as EHA produces a different page -ok $mech->host("www.reportemptyhomes.co.uk"), 'change host to reportemptyhomes'; +ok $mech->host("reportemptyhomes.co.uk"), 'change host to reportemptyhomes'; $mech->get_ok('/about'); -$mech->content_lacks('FixMyStreet.com'); +$mech->content_contains('The Empty Homes Agency'); + +# check that geting the page as EHA in welsh produces a different page +ok $mech->host("cy.reportemptyhomes.co.uk"), + 'change host to cy.reportemptyhomes'; +$mech->get_ok('/about'); +$mech->content_contains('Yr Asiantaeth Tai Gwag'); done_testing(); |