diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-05-19 14:56:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-05-19 14:56:50 +0100 |
commit | 7d563605520e92c6c3c1441a2c89cce127e16b72 (patch) | |
tree | de3cd623d7de83aec15f854b5007f8326b263ebb /t/app | |
parent | b7cd54ecbf9c9bfcfe68b55676c2387fe7a8239f (diff) |
Check Norwegian version of /reports.
Diffstat (limited to 't/app')
-rw-r--r-- | t/app/controller/reports.t | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/t/app/controller/reports.t b/t/app/controller/reports.t index 312297436..6cb12e20f 100644 --- a/t/app/controller/reports.t +++ b/t/app/controller/reports.t @@ -20,14 +20,14 @@ SKIP: { # EHA lacks one column the others have $mech->content_lacks('state unknown'); - # FIXME To do the below, need a way of altering where MaPit is pointing - # skip( "Need 'fiksgatami' in ALLOWED_COBRANDS config", 8 ) - # unless FixMyStreet::App->config->{ALLOWED_COBRANDS} =~ m{fiksgatami}; - # ok $mech->host("fiksgatami.no"), 'change host to fiksgatami'; - # $mech->get_ok('/reports'); - # # There should only be one Oslo - # $mech->content_contains('Oslo'); - # $mech->content_unlike(qr{Oslo.*Oslo}s); + skip( "Need 'fiksgatami' in ALLOWED_COBRANDS config", 8 ) + unless FixMyStreet::App->config->{ALLOWED_COBRANDS} =~ m{fiksgatami}; + mySociety::MaPit::configure('http://mapit.nuug.no/'); + ok $mech->host("fiksgatami.no"), 'change host to fiksgatami'; + $mech->get_ok('/reports'); + # There should only be one Oslo + $mech->content_contains('Oslo'); + $mech->content_unlike(qr{Oslo">Oslo.*Oslo}s); } done_testing(); |