X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F81transactions.t;h=4a7830f48c09adf798b507e19935e27907660b09;hb=664a70fad7d9aaf7d38579cdafe934663ee4a9c3;hp=c9d9c62d1fb8d26c98f1ed12d283ee2005a51036;hpb=58d387fec14d2f92723ab0db1d64a18ee449639c;p=dbsrgits%2FDBIx-Class.git diff --git a/t/81transactions.t b/t/81transactions.t index c9d9c62..4a7830f 100644 --- a/t/81transactions.t +++ b/t/81transactions.t @@ -5,7 +5,7 @@ use Test::More; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest::init_schema(); +my $schema = DBICTest->init_schema(); plan tests => 39; @@ -25,7 +25,7 @@ my $code = sub { eval { (ref $schema)->txn_do(sub{}); }; - like($@, qr/class method/, '$self parameter check ok'); + like($@, qr/storage/, "can't call txn_do without storage"); eval { $schema->txn_do(''); }; @@ -118,7 +118,7 @@ my $fail_code = sub { # Force txn_rollback() to throw an exception no warnings 'redefine'; no strict 'refs'; - local *{"DBIx::Class::Schema::txn_rollback"} = sub{die 'FAILED'}; + local *{"DBIx::Class::Storage::DBI::SQLite::txn_rollback"} = sub{die 'FAILED'}; eval { $schema->txn_do($fail_code, $artist);