X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fhas_many_loads_foreign_class.t;h=5485972cba70059bb3592c783b7ec924d692c688;hb=83eef5621cc3a7b77a280b4b01f1175e9935fff6;hp=4275f65639ec76b630e615c04c148e57a3afc10a;hpb=d9bd51956470404b3960871d3413fa98f16961d2;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 4275f65..5485972 100644 --- a/t/cdbi/has_many_loads_foreign_class.t +++ b/t/cdbi/has_many_loads_foreign_class.t @@ -1,14 +1,17 @@ +use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat'; + use strict; -use Test::More; -use Class::Inspector (); +use warnings; +use Test::More; use lib 't/cdbi/testlib'; use Director; -# Test that has_many() will load the foreign class. +# Test that has_many() will load the foreign class +require Class::Inspector; ok !Class::Inspector->loaded( 'Film' ); -ok eval { Director->has_many( films => 'Film' ); 1; } || diag $@; +ok eval { Director->has_many( films => 'Film' ); 1; } or diag $@; my $shan_hua = Director->create({ Name => "Shan Hua",