-sub run_tests {
-my $schema = shift;
+use strict;
+use warnings;
+
+use Test::More;
+use lib qw(t/lib);
+use DBICTest;
+
+my $schema = DBICTest::init_schema();
+
plan tests => 39;
my $code = sub {
# Test checking of parameters
{
-
eval {
(ref $schema)->txn_do(sub{});
};
- like($@, qr/class method/, '$coderef parameter check ok');
+ like($@, qr/class method/, '$self parameter check ok');
eval {
$schema->txn_do('');
};
})->first;
ok(!defined($cd), q{failed txn_do didn't add failed txn's cd});
}
-}
-1;