From 54c2b7f64d448e7dead97ea43e27730d5d81dfbb Mon Sep 17 00:00:00 2001 From: Finn Date: Thu, 7 Sep 2017 13:26:03 +0100 Subject: [PATCH] Added count to test --- t/admin/transaction.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/admin/transaction.t b/t/admin/transaction.t index 4419213..d3a3980 100644 --- a/t/admin/transaction.t +++ b/t/admin/transaction.t @@ -33,6 +33,8 @@ for my $count ( 0 .. 29 ) { } } +is $schema->resultset('Transaction')->count, 87; + #login to admin $t->ua->max_redirects(10); $t->post_ok('/admin', form => { @@ -53,6 +55,8 @@ $t->post_ok("/admin/transactions/1/delete") ->status_is(200)->or($framework->dump_error) ->content_like(qr/Successfully deleted transaction/); +is $schema->resultset('Transaction')->count, 86; + #Read deleted transaction $t->get_ok("/admin/transactions/1") ->content_like(qr/No transaction found/);