diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-24 15:27:23 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-24 15:27:23 +0000 |
commit | 7c9a89eedb17bdafbc171bba5de21cdd5725acd7 (patch) | |
tree | 3603445333afb5821ef568711b66d274fac067b6 /t/app/controller | |
parent | b327a36371ea3c0151452ae5e516e63c5fc53b54 (diff) |
Explicitly set gettext_dir so that it does not matter where calling script file is located
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/about.t | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t index adbce8f25..aeca47d86 100644 --- a/t/app/controller/about.t +++ b/t/app/controller/about.t @@ -8,17 +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('FixMyStreet.com'); +$mech->content_contains('About Us :: 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('The Empty Homes Agency'); +$mech->content_contains('About us :: 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"), - 'change host to cy.reportemptyhomes'; +ok $mech->host("cy.reportemptyhomes.co.uk"), 'host to cy.reportemptyhomes'; $mech->get_ok('/about'); -$mech->content_contains('Yr Asiantaeth Tai Gwag'); +$mech->content_contains('Amdanom ni :: Adrodd am Eiddo Gwag'); +$mech->content_contains('html lang="cy"'); done_testing(); |