X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate;a=blobdiff_plain;f=t%2Fmoosified-rs.t;h=cf3d942f1add7e73e7fb8a145cfb2c016d792726;hp=c9020488e141bb73f5905d2bb12b33e9ae8ca1e1;hb=9dc8938b884bc17212e662c80e43750325287938;hpb=ac6bae45084484cdef44619daf60aa6b9eb2d02a diff --git a/t/moosified-rs.t b/t/moosified-rs.t index c902048..cf3d942 100644 --- a/t/moosified-rs.t +++ b/t/moosified-rs.t @@ -1,11 +1,22 @@ -# -*- perl -*- +use strict; +use warnings; +use Test::More; + +BEGIN { + eval { + require Moose; + require MooseX::NonMoose; + require namespace::autoclean; + }; + plan skip_all => + "Moose, MooseX::NonMoose and namespace::autoclean required" + if $@; +} use lib 't/lib'; use DBSchemaMoose; use RunTests; -use Test::More; - -my $schema = DBSchemaMoose->get_test_schema(); -run_tests( $schema); +my $schema = DBSchemaMoose->get_test_schema('dbi:SQLite:dbname=:memory:'); +run_tests($schema);