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.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index 892231ef1..df4f18660 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -54,8 +54,12 @@ foreach my $test (
{
subtest "test bad pc value '$test->{pc}'" => sub {
$mech->get_ok('/');
- $mech->submit_form_ok( { with_fields => { pc => $test->{pc} } },
- "bad location" );
+ FixMyStreet::override_config {
+ GEOCODER => '',
+ }, sub {
+ $mech->submit_form_ok( { with_fields => { pc => $test->{pc} } },
+ "bad location" );
+ };
is_deeply $mech->page_errors, $test->{errors},
"expected errors for pc '$test->{pc}'";
is_deeply $mech->pc_alternatives, $test->{pc_alternatives},