aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-16 11:13:38 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-16 14:45:18 +0000
commitdf174234d36460215e880aca68e0a4c6633f04e1 (patch)
treebe45690d947a20faf25a2122748410ad611e6f41 /t
parent91ed9facc29eda616d2de9bb248df3347101a5be (diff)
[TfL] Include non-open reports in dupe suggestions
Diffstat (limited to 't')
-rw-r--r--t/cobrand/tfl.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index 5425bc0f7..61d851422 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -283,6 +283,10 @@ subtest "test report creation anonymously by staff user" => sub {
is $report->state, 'confirmed', "report confirmed";
$mech->get_ok( '/report/' . $report->id );
+ $report->update({ state => 'fixed - council' });
+ my $json = $mech->get_ok_json('/around/nearby?latitude=' . $report->latitude . '&longitude=' . $report->longitude);
+ is @{$json->{pins}}, 2, 'right number of pins';
+
is $report->bodies_str, $body->id;
is $report->name, 'Anonymous user';
is $report->user->email, 'anonymous@tfl.gov.uk';