aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/about.t
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-14 10:33:50 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-14 10:33:50 +0100
commit998a7b4aa08b9b4f5f857ad652d6f3f90eec076b (patch)
treec714ae85e4f3ecfbb480bc391e8b66421f681146 /t/app/controller/about.t
parentc725851a457637daddaefc5da198e0bf3de6b236 (diff)
Match title now that it has newlines in it
Diffstat (limited to 't/app/controller/about.t')
-rw-r--r--t/app/controller/about.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t
index aeca47d86..a086be98d 100644
--- a/t/app/controller/about.t
+++ b/t/app/controller/about.t
@@ -8,19 +8,19 @@ ok( my $mech = Test::WWW::Mechanize::Catalyst->new, 'Created mech object' );
# check that we can get the page
$mech->get_ok('/about');
-$mech->content_contains('About Us :: FixMyStreet.com');
+$mech->content_like(qr{About Us ::\s+FixMyStreet.com});
$mech->content_contains('html lang="en-gb"');
# 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_contains('About us :: Report Empty Homes');
+$mech->content_like(qr{About us ::\s+Report Empty Homes});
$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_contains('Amdanom ni :: Adrodd am Eiddo Gwag');
+$mech->content_like(qr{Amdanom ni ::\s+Adrodd am Eiddo Gwag});
$mech->content_contains('html lang="cy"');
done_testing();