X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F09update.tl;h=ff802f045d692a380797de35e5c133d090b0218d;hb=60283c2e81a0c2ec3ef9ee94350f1a620291e65a;hp=f831bc1b0229f55725b5873cc86007032591d118;hpb=3712e4f41b929456d8fad713ca702e4a48e9a940;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/09update.tl b/t/run/09update.tl index f831bc1..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->class("Artist")->find(1); +my $art = $schema->resultset("Artist")->find(1); isa_ok $art => 'DBICTest::Artist';