aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-12-05 11:54:40 +0000
committerStruan Donald <struan@exo.org.uk>2011-12-05 11:54:40 +0000
commit10e669ab1dcc37c928ee4b97c5793dbd00242dba (patch)
tree4c3c4270445171aebb7e278187e78be4aa4b04cb /t/cobrand
parenta34bd2635ae720403a942ca2ef41a2b2951ba31f (diff)
also check that cached geocode object looks roughly correct
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/closest.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/cobrand/closest.t b/t/cobrand/closest.t
index bb5dc8dae..c7ba10cc4 100644
--- a/t/cobrand/closest.t
+++ b/t/cobrand/closest.t
@@ -59,6 +59,7 @@ ok !$report->geocode, 'no gecode entry for report';
my $near = $c->find_closest( $report->latitude, $report->longitude, $report );
ok $report->geocode, 'geocode entry added to report';
+ok $report->geocode->{resourceSets}, 'geocode entry looks like right sort of thing';
like $near, qr/Constitution Hill/i, 'nearest street looks right';
like $near, qr/Nearest postcode .*: SW1A 1AA/i, 'nearest postcode looks right';