From f05dc118efd45e0df7f3e8d04366f732440f4fd6 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 13 Dec 2012 18:53:25 +0000 Subject: Update tests for new names of things and bodies needing to exist. --- t/app/controller/json.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 't/app/controller/json.t') diff --git a/t/app/controller/json.t b/t/app/controller/json.t index e8f9c0e09..405a84821 100644 --- a/t/app/controller/json.t +++ b/t/app/controller/json.t @@ -45,6 +45,8 @@ is_deeply # # put an entry in the database for this test my $user = $mech->create_user_ok('test@example.com'); +my $body = $mech->create_body_ok(2501, 'Wandsworth Borough Council'); + my $problem_args = { postcode => 'sw1a 1aa', bodies_str => '2501', @@ -86,7 +88,7 @@ is_deeply # 'category' => 'test category', 'confirmed' => '2000-01-01 12:01:00', 'lastupdate' => '2000-01-01 12:00:00', - 'council' => 'Wandsworth Borough Council', + 'bodies_str' => 'Wandsworth Borough Council', 'detail' => 'Test detail', 'id' => $problem->id, 'name' => 'Test Name', @@ -103,7 +105,7 @@ is_deeply # 'category' => 'test category', 'confirmed' => '2000-01-01 12:02:00', 'lastupdate' => '2000-01-01 12:00:00', - 'council' => 'Wandsworth Borough Council', + 'bodies_str' => 'Wandsworth Borough Council', 'detail' => 'Test detail', 'id' => $anon_problem->id, 'name' => '', -- cgit v1.2.3