aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/around.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/around.t')
-rw-r--r--t/app/controller/around.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index ed29d438c..3f0fff666 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -359,4 +359,10 @@ subtest 'check map zoom level customisation' => sub {
};
};
+subtest 'check nearby lookup' => sub {
+ my $p = FixMyStreet::DB->resultset("Problem")->search({ external_body => "Pothole-confirmed" })->first;
+ $mech->get_ok('/around/nearby?latitude=51.754926&longitude=-1.256179&filter_category=Pothole');
+ $mech->content_contains('["51.754926","-1.256179","yellow",' . $p->id . ',"Around page Test 1 for ' . $body->id . '","small",false]');
+};
+
done_testing();