aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/fakemapit.t
blob: c89aac6004b349aad17e6cdac707190b90094b59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use JSON::MaybeXS;
use FixMyStreet::TestMech;

my $mech = FixMyStreet::TestMech->new;

FixMyStreet::override_config {
    MAPIT_URL => 'http://mapit.uk/',
}, sub {
    $mech->get_ok('/mapit/areas/Birmingham');
    is_deeply decode_json($mech->content), {2514 => {parent_area => undef, id => 2514, name => "Birmingham City Council", type => "MTD"}};
};

done_testing;