diff options
Diffstat (limited to 't/Mock')
-rw-r--r-- | t/Mock/Nominatim.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/Mock/Nominatim.pm b/t/Mock/Nominatim.pm index 6a61b423e..1f4e248d2 100644 --- a/t/Mock/Nominatim.pm +++ b/t/Mock/Nominatim.pm @@ -21,7 +21,9 @@ sub dispatch_request { sub (GET + /search + ?q=) { my ($self, $q) = @_; my $response = $self->query($q); - my $json = $self->json->encode($response); + my $json = mySociety::Locale::in_gb_locale { + $self->json->encode($response); + }; return [ 200, [ 'Content-Type' => 'application/json' ], [ $json ] ]; }, } |