diff options
author | Struan Donald <struan@exo.org.uk> | 2011-05-24 13:14:45 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-05-24 13:14:45 +0100 |
commit | 7b0d984bd9607e5b7e12184f1d91bc52a0280417 (patch) | |
tree | 342d688dc4315a1821052111cd1bd45a3ac5c4f2 /t/app/controller | |
parent | 3697d6efaa4c11908b2c051b1986a98643c199ac (diff) |
google maps don't seem to pay as much attention to region hinting as they once did so make sure we add UK on to the end.
also update tests to take into account changed results because of this.
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/around.t | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t index 069ec605a..12b26cec7 100644 --- a/t/app/controller/around.t +++ b/t/app/controller/around.t @@ -43,19 +43,22 @@ foreach my $test ( { pc => 'glenthorpe', errors => [], - pc_alternatives => [ # TODO - should filter out these non-UK addresses + pc_alternatives => [ 'Glenthorpe Crescent, Leeds LS9 7', 'Glenthorpe Rd, Merton, Greater London SM4 4', - 'Glenthorpe Ln, Katy, TX 77494, USA', - 'Glenthorpe Dr, Walnut, CA 91789, USA', 'Glenthorpe Ave, Leeds LS9 7', - 'Glenthorpe Ct, Katy, TX 77494, USA', + 'Glenthorne Rd, Hammersmith, Greater London W6 0', + 'Glenthorne Ave, Yeovil, Somerset BA21 4', + 'Glenthorne Rd, Kenwyn, Cornwall TR3 6', + 'Glenthorne Dr, Cheslyn Hay, Staffordshire WS6 7', + 'Glenthorne Gardens, Ilford, Greater London IG5 0', + 'Glenthorne Ave, Croydon, Greater London CR0 7', ], }, { pc => 'Glenthorpe Ct, Katy, TX 77494, USA', errors => - ['We had a problem with the supplied co-ordinates - outside the UK?'], + ['Sorry, we could not find that location.'], pc_alternatives => [], }, ) |