aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/about.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-04-22 13:49:47 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-04-22 13:49:47 +0100
commitc923ee706a122863b2c9db94bf09dfe235b4fd4d (patch)
tree2e2fefa4684e3ecae329e0533e567fb6a09872f5 /t/app/controller/about.t
parentc9d7be8f8994ca51685c71bd7490ef42822d41b3 (diff)
parent66eb844d7eaba7155e362dcec8a7a7db8f3dbf4c (diff)
Merge branch '1383-remove-dead-projects'
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r--t/app/controller/about.t18
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();