aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/dashboard.t
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-09-04 17:47:46 +0100
committerStruan Donald <struan@exo.org.uk>2017-09-04 17:47:46 +0100
commit1391186c2fb56e46df5b124362e3facf6af173b5 (patch)
treecb88d4cc54b32ffbc6add3f06adbb7b89a559346 /t/app/controller/dashboard.t
parent4c0328bbe43b5cdf0ca9660505220d093a0cebe0 (diff)
include easting/northing in dashboard CSV export
Fixes mysociety/fixmystreetforcouncils#221
Diffstat (limited to 't/app/controller/dashboard.t')
-rw-r--r--t/app/controller/dashboard.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/app/controller/dashboard.t b/t/app/controller/dashboard.t
index 4ecad9f31..5c0e19070 100644
--- a/t/app/controller/dashboard.t
+++ b/t/app/controller/dashboard.t
@@ -604,7 +604,7 @@ FixMyStreet::override_config {
}
is scalar @rows, 6, '1 (header) + 5 (reports) = 6 lines';
- is scalar @{$rows[0]}, 16, '16 columns present';
+ is scalar @{$rows[0]}, 18, '18 columns present';
is_deeply $rows[0],
[
@@ -623,11 +623,16 @@ FixMyStreet::override_config {
'Longitude',
'Nearest Postcode',
'Ward',
+ 'Easting',
+ 'Northing',
'Report URL',
],
'Column headers look correct';
is $rows[5]->[14], 'Bradford-on-Avon', 'Ward column is name not ID';
+
+ is $rows[5]->[15], '610591', 'Correct Easting conversion';
+ is $rows[5]->[16], '126573', 'Correct Northing conversion';
};
};
restore_time;