aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/json.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-01 16:35:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-01 16:41:23 +0100
commit5df9b993035acdf8160d4c0bd83ff6091cd50cf7 (patch)
treea8aa103e76d3e4448e48246205ec757cfea8796b /t/app/controller/json.t
parent67872ee79ba9aa4356af2cc3bacb730ef665933a (diff)
Fix test.
Diffstat (limited to 't/app/controller/json.t')
-rw-r--r--t/app/controller/json.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/app/controller/json.t b/t/app/controller/json.t
index d6820e1be..468fa5b31 100644
--- a/t/app/controller/json.t
+++ b/t/app/controller/json.t
@@ -78,9 +78,14 @@ is_deeply #
"/json/problems/new?start_date=2000-01-01&end_date=2000-02-01"), #
[
{
+ 'state' => 'confirmed',
+ 'longitude' => -0.23021896608596,
+ 'latitude' => 51.4531988729771,
+ 'used_map' => 1,
'anonymous' => 0,
'category' => 'test category',
'confirmed' => '2000-01-01 12:01:00',
+ 'lastupdate' => '2000-01-01 12:00:00',
'council' => 'Wandsworth Borough Council',
'detail' => 'Test detail',
'id' => $problem->id,
@@ -90,9 +95,14 @@ is_deeply #
'whensent' => undef
},
{
+ 'state' => 'confirmed',
+ 'longitude' => -0.23021896608596,
+ 'latitude' => 51.4531988729771,
+ 'used_map' => 1,
'anonymous' => 1,
'category' => 'test category',
'confirmed' => '2000-01-01 12:02:00',
+ 'lastupdate' => '2000-01-01 12:00:00',
'council' => 'Wandsworth Borough Council',
'detail' => 'Test detail',
'id' => $anon_problem->id,