X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Ferror.t;h=d5980eb361c552cebbed63caf96a1796bd2983d3;hb=1f9712ad52d92dd562fcda6e1846370d45342a13;hp=b72b0fe661938a5930ee18787dd5902ee399c7a5;hpb=e0b2dc7456481be6870a23a5927a99c8416c82f7;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/storage/error.t b/t/storage/error.t index b72b0fe..d5980eb 100644 --- a/t/storage/error.t +++ b/t/storage/error.t @@ -6,8 +6,7 @@ use Test::Warn; use Test::Exception; use lib qw(t/lib); -use_ok( 'DBICTest' ); -use_ok( 'DBICTest::Schema' ); +use DBICTest; my $schema = DBICTest->init_schema; @@ -16,7 +15,7 @@ warnings_are ( sub { sub { $schema->resultset('CD')->create({ title => 'vacation in antarctica' }) }, - qr/DBI Exception.+constraint failed.+cd\.artist.+NULL/s + qr/DBI Exception.+cd\.artist.+NULL/s ); # as opposed to some other error }, [], 'No warnings besides exception' ); @@ -35,7 +34,7 @@ throws_ok ( # exception fallback: SKIP: { - if (DBIx::Class::_ENV_::PEEPEENESS()) { + if (DBIx::Class::_ENV_::PEEPEENESS) { skip "Your perl version $] appears to leak like a sieve - skipping garbage collected \$schema test", 1; }