From 3ef36c3c9b5393c78c0af59b9f4e3f4528472357 Mon Sep 17 00:00:00 2001 From: Edmund von der Burg Date: Wed, 23 Feb 2011 22:10:37 +0000 Subject: More work on the Cobrand and setting for request test to see welsh about us page --- t/app/controller/about.t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 't/app/controller') 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(); -- cgit v1.2.3