aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/around.t
diff options
context:
space:
mode:
authorSteven Day <steve@mysociety.org>2015-06-29 12:03:17 +0100
committerSteven Day <steve@mysociety.org>2015-06-29 15:48:10 +0100
commit69ed1cda6a315a46e3309dcf3035ad7229931829 (patch)
treea488a1f4c9485e38b40427f8edc6cce6aee5ca10 /t/app/controller/around.t
parentcb97d3247c286e3142ea6cc883fa7db187fcfb79 (diff)
Rename map filtering GET param, remove unnecessary query
Diffstat (limited to 't/app/controller/around.t')
-rw-r--r--t/app/controller/around.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index 4040d1024..03bcebf96 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -153,7 +153,7 @@ subtest 'check category and status filtering works on /ajax' => sub {
my $pins = $json->{pins};
is scalar @$pins, 6, 'correct number of reports when no filters';
- $json = $mech->get_ok_json( '/ajax?category=Pothole&bbox=' . $bbox );
+ $json = $mech->get_ok_json( '/ajax?filter_category=Pothole&bbox=' . $bbox );
$pins = $json->{pins};
is scalar @$pins, 2, 'correct number of Pothole reports';
@@ -161,7 +161,7 @@ subtest 'check category and status filtering works on /ajax' => sub {
$pins = $json->{pins};
is scalar @$pins, 3, 'correct number of open reports';
- $json = $mech->get_ok_json( '/ajax?status=fixed&category=Vegetation&bbox=' . $bbox );
+ $json = $mech->get_ok_json( '/ajax?status=fixed&filter_category=Vegetation&bbox=' . $bbox );
$pins = $json->{pins};
is scalar @$pins, 1, 'correct number of fixed Vegetation reports';
};