diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-05-03 14:08:26 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-05-03 14:08:26 +0100 |
commit | c299b5f0c693e5ed1dd64d7ce0af380900d25b1c (patch) | |
tree | cb2e867419a30b06929448840c9c185e676d1279 | |
parent | f7a00a8b16e102bb0cfd78a9d8e65a82bdfa88b0 (diff) | |
parent | 3903fa098c3acd275cbabe2c309cf38e64bd88e5 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://matthew@git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
-rw-r--r-- | t/app/controller/about.t | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/t/app/controller/about.t b/t/app/controller/about.t index a086be98d..e1a1641fd 100644 --- a/t/app/controller/about.t +++ b/t/app/controller/about.t @@ -11,16 +11,21 @@ $mech->get_ok('/about'); $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_like(qr{About us ::\s+Report Empty Homes}); -$mech->content_contains('html lang="en-gb"'); +SKIP: { + skip( "Need 'emptyhomes' in ALLOWED_COBRANDS config", 8 ) + unless FixMyStreet::App->config->{ALLOWED_COBRANDS} =~ m{emptyhomes}; -# 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 ::\s+Adrodd am Eiddo Gwag}); -$mech->content_contains('html lang="cy"'); + # 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 ::\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_like(qr{Amdanom ni ::\s+Adrodd am Eiddo Gwag}); + $mech->content_contains('html lang="cy"'); +} done_testing(); |