X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F20invocations.t;h=fe52379601dec013c9c9054b5a606eb9631cd43c;hb=c9cf9b4def5db80a79facea0eaba6dc32ac1e2c3;hp=810c63ce53891aa0c08522ad1d3836d69b2b3622;hpb=b72193515784d50263ec8d5a74ae467d8072ce0f;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/20invocations.t b/t/20invocations.t index 810c63c..fe52379 100644 --- a/t/20invocations.t +++ b/t/20invocations.t @@ -104,7 +104,7 @@ my @invocations = ( ); DBICTest::Schema::12->clone; }, - 'skip_load_external_1' => sub { + 'no_skip_load_external' => sub { # By default we should pull in t/lib/DBICTest/Schema/13/Foo.pm $skip_me since t/lib is in @INC use DBIx::Class::Schema::Loader; DBIx::Class::Schema::Loader::make_schema_at( @@ -114,7 +114,7 @@ my @invocations = ( ); DBICTest::Schema::13->clone; }, - 'skip_load_external_2' => sub { + 'skip_load_external' => sub { # When we explicitly skip_load_external t/lib/DBICTest/Schema/14/Foo.pm should be ignored use DBIx::Class::Schema::Loader; DBIx::Class::Schema::Loader::make_schema_at( @@ -124,6 +124,15 @@ my @invocations = ( ); DBICTest::Schema::14->clone; }, + 'moose' => sub { + package DBICTest::Schema::8; + use base qw/ DBIx::Class::Schema::Loader /; + __PACKAGE__->naming('current'); + __PACKAGE__->connect( + $make_dbictest_db::dsn, + { loader_options => { use_moose => 1 } } + ); + }, ); # 4 tests per k/v pair