diff options
Diffstat (limited to 't/app/model/responsetemplate.t')
-rw-r--r-- | t/app/model/responsetemplate.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/model/responsetemplate.t b/t/app/model/responsetemplate.t index fbabc1c12..631af9819 100644 --- a/t/app/model/responsetemplate.t +++ b/t/app/model/responsetemplate.t @@ -16,7 +16,7 @@ $t2->add_to_contacts($c2); my @contacts = FixMyStreet::DB->resultset('Contact')->not_deleted->search( { body_id => [ $body->id ] } )->all; subtest 'by_categories returns allresponse templates grouped by category' => sub { - my $templates = FixMyStreet::App->model('DB::ResponseTemplate')->by_categories($area_id, @contacts); + my $templates = FixMyStreet::DB->resultset('ResponseTemplate')->by_categories($area_id, @contacts); my $potholes = decode_json($templates->{Potholes}); my $graffiti = decode_json($templates->{Graffiti}); |