X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F09update.tl;h=ff802f045d692a380797de35e5c133d090b0218d;hb=bab77431c4723e1625740c08c9c53742b689cbdb;hp=fbb659398df68ae965ce5e5682b2bd450f08be60;hpb=0567538f9dcf59ff0dcf0fe766815b242115ce20;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/run/09update.tl b/t/run/09update.tl index fbb6593..ff802f0 100644 --- a/t/run/09update.tl +++ b/t/run/09update.tl @@ -1,11 +1,12 @@ sub run_tests { +my $schema = shift; BEGIN { eval "use DBD::SQLite"; plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 3); } -my $art = DBICTest::Artist->find(1); +my $art = $schema->resultset("Artist")->find(1); isa_ok $art => 'DBICTest::Artist';