diff options
author | Struan Donald <struan@exo.org.uk> | 2012-03-20 10:31:08 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-03-20 10:31:08 +0000 |
commit | 368bbe996ad3a3cecc402fa4e44fa52e3464865c (patch) | |
tree | 0fe19521ee28d6feee4c54cb4f67a10e0af4db1a /t/open311 | |
parent | 3fce129f4aa4ae25ebaad559d8da9c30cad484c6 (diff) |
slightly less convulted test data structure
Diffstat (limited to 't/open311')
-rw-r--r-- | t/open311/getservicerequestupdates.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t index 1d0c19c8e..155288ece 100644 --- a/t/open311/getservicerequestupdates.t +++ b/t/open311/getservicerequestupdates.t @@ -105,8 +105,8 @@ for my $test ( { desc => 'element with content', updated_datetime => sprintf( '<updated_datetime>%s</updated_datetime>', $dt ), - res => { update_id => 638344, service_request_id => $problem->external_id, service_request_id_ext => 1, - status => 'open', description => 'This is a note', updated_datetime => $dt } , + description => 'This is a note', + external_id => 638344, }, ) { subtest $test->{desc} => sub { @@ -124,9 +124,9 @@ for my $test ( is $problem->comments->count, 1, 'comment count'; - my $c = FixMyStreet::App->model('DB::Comment')->search( { external_id => $test->{res}->{update_id} } )->first; + my $c = FixMyStreet::App->model('DB::Comment')->search( { external_id => $test->{external_id} } )->first; ok $c, 'comment exists'; - is $c->text, $test->{res}->{description}, 'text correct'; + is $c->text, $test->{description}, 'text correct'; }; } |