diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-05-21 16:28:31 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-09-19 16:11:09 +0100 |
commit | c78ddc808b6d48188d7057c35718bed7f1fc28ff (patch) | |
tree | bbbaa67296737fec1946f6f8f3c79e34f9a38728 /t/geocode | |
parent | cc2ca7a697e1750ef197e222a1d45c4b345e61d4 (diff) |
Switch geocoders to be pluggable.
Diffstat (limited to 't/geocode')
-rw-r--r-- | t/geocode/google.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/geocode/google.t b/t/geocode/google.t index ee3c15ea8..40e8caf9a 100644 --- a/t/geocode/google.t +++ b/t/geocode/google.t @@ -11,12 +11,12 @@ use Catalyst::Test 'FixMyStreet::App'; use t::Mock::GoogleGeocoder; my $c = ctx_request('/'); -my $r = FixMyStreet::Geocode::Google::string("one result", $c); +my $r = FixMyStreet::Geocode::Google->string("one result", $c); ok $r->{latitude}; ok $r->{longitude}; $c->stash->{cobrand} = FixMyStreet::Cobrand::Tester->new; -$r = FixMyStreet::Geocode::Google::string("two results", $c); +$r = FixMyStreet::Geocode::Google->string("two results", $c); is scalar @{$r->{error}}, 2; done_testing; |