aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311/populate-service-list.t
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2014-07-25 15:10:57 +0000
committerHakim Cassimally <hakim@mysociety.org>2014-10-16 16:56:27 +0000
commit1708bc30af7176f95f0ec5718289d3a633daf32b (patch)
tree989803d0b6fa594ebca3a86f7d2ef1e489cfc515 /t/open311/populate-service-list.t
parent9dacce035c39b52e66b6ebed23b9c33613375ca4 (diff)
Open311: FMS <-> Open311 Endpoint End to end tests
Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
Diffstat (limited to 't/open311/populate-service-list.t')
-rw-r--r--t/open311/populate-service-list.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/open311/populate-service-list.t b/t/open311/populate-service-list.t
index 9fd18b607..d9d65945b 100644
--- a/t/open311/populate-service-list.t
+++ b/t/open311/populate-service-list.t
@@ -25,10 +25,12 @@ $body->body_areas->find_or_create({
area_id => 1
} );
+my $BROMLEY = 'Bromley Council';
my $bromley = FixMyStreet::App->model('DB::Body')->find_or_create( {
id => 2482,
- name => 'Bromley Council',
+ name => $BROMLEY,
} );
+$bromley->update({ name => $BROMLEY });
$bromley->body_areas->find_or_create({
area_id => 2482
} );