diff options
author | Struan Donald <struan@exo.org.uk> | 2012-05-22 16:19:43 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-05-22 16:19:43 +0100 |
commit | 6ab27d6be43abfbfdbdb95b03b249d04a47a912f (patch) | |
tree | 0cf29cf721ffc6c9bbf2ae8da856ccbce4fcdac1 /t/open311.t | |
parent | d7b74385feb281ff203ae77fe6560483aae7e94a (diff) |
If from an existing report page you click 'Nearby problems' > skip map
then you end up with used_map=f and nothign in postcode so we should
not attempt to send the postcode over open311 as it won't be there
Diffstat (limited to 't/open311.t')
-rw-r--r-- | t/open311.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/open311.t b/t/open311.t index d6a5ef6f6..d66a9c2e5 100644 --- a/t/open311.t +++ b/t/open311.t @@ -342,6 +342,13 @@ for my $test ( postcode => 'EH99 1SP', used_map => 1, includes_latlong => 1, + }, + { + desc => 'no use lat long, no map and no postcode sends lat long', + use_latlong => 0, + postcode => '', + used_map => 0, + includes_latlong => 1, } ) { subtest $test->{desc} => sub { |