fixup to txn_do to allow use as a classmethod
[dbsrgits/DBIx-Class.git] / t / 81transactions.t
index 847963e..5434387 100644 (file)
@@ -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('');
   };