aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/about.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r--t/app/controller/about.t10
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();