Skip to content

Commit

Permalink
Test the log mesage as well
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 22, 2024
1 parent 5632b7c commit b165cfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/proposal.t
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,10 @@ subtest 'Remove ignored match' => sub {

$t->app->minion->perform_jobs;
is $t->app->minion->jobs({tasks => ['index'], states => ['inactive']})->total, 0, 'no jobs';
my $logs = $t->app->log->capture('trace');
$t->delete_ok("/ignored-matches/$id")->status_is(200)->json_is('ok');
$t->delete_ok("/ignored-matches/$id")->status_is(400)->json_is({error => 'Ignored match does not exist'});
like $logs, qr!User "tester" removed ignored match "abe8204ddebdc31a4d0e77aa647f42cd"!, 'right message';
is $t->app->minion->jobs({tasks => ['index'], states => ['inactive']})->total, 1, 'job created';
};

Expand Down

0 comments on commit b165cfb

Please sign in to comment.