X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fhas_many_loads_foreign_class.t;h=bba66e82e6e8d9ff916fc7c48633b573306217ff;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=f6b30e79419e55006dffe5c68b3a50b85133ff01;hpb=50891152d0b24649bfd67bdba97feec86b11c064;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/has_many_loads_foreign_class.t b/t/cdbi/has_many_loads_foreign_class.t index f6b30e7..bba66e8 100644 --- a/t/cdbi/has_many_loads_foreign_class.t +++ b/t/cdbi/has_many_loads_foreign_class.t @@ -1,13 +1,7 @@ use strict; +use warnings; use Test::More; - - -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan skip_all => 'Class::Trigger and DBIx::ContextualFetch required' if $@; - eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 3); -} +use Class::Inspector (); use lib 't/cdbi/testlib'; @@ -34,4 +28,6 @@ my $guillotine = Film->create({ Director => "Yu Wang", }); -is_deeply [sort $shan_hua->films], [sort $inframan, $guillotine2]; \ No newline at end of file +is_deeply [sort $shan_hua->films], [sort $inframan, $guillotine2]; + +done_testing;