X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F92storage.t;h=67a594f2a46cb2b7578ca31f6e00ab88d45dfb7f;hb=2654e84a2867bf711cfa9ec5e0d0717ce4c53218;hp=5994e2a28daea144bba5476f17a0deddd27c73f4;hpb=1569814a5d8420f9903a8125a1d32d7fef809c50;p=dbsrgits%2FDBIx-Class.git diff --git a/t/92storage.t b/t/92storage.t index 5994e2a..67a594f 100644 --- a/t/92storage.t +++ b/t/92storage.t @@ -4,30 +4,12 @@ use warnings; use Test::More; use lib qw(t/lib); use DBICTest; -use DBICTest::ExplodingStorage; -plan tests => 3; +plan tests => 1; my $schema = DBICTest->init_schema(); is( ref($schema->storage), 'DBIx::Class::Storage::DBI::SQLite', 'Storage reblessed correctly into DBIx::Class::Storage::DBI::SQLite' ); - -my $storage = $schema->storage; -$storage->ensure_connected; - -bless $storage, "DBICTest::ExplodingStorage"; -$schema->storage($storage); - -eval { - $schema->resultset('Artist')->create({ name => "Exploding Sheep" }) -}; - -is($@, "", "Exploding \$sth->execute was caught"); - -is(1, $schema->resultset('Artist')->search({name => "Exploding Sheep" })->count, - "And the STH was retired"); - - 1;