X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=5ba72a82e728303da16c49e2aa7e35eb97baf6a8;hb=56166f36313355d502a6517bf3316252d92d375a;hp=7487c725365cc314f98ae85791ec3d72f96f1d3f;hpb=2527233b404455c2114f90da8041f42cd957f541;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index 7487c72..5ba72a8 100644 --- a/t/99dbic_sqlt_parser.t +++ b/t/99dbic_sqlt_parser.t @@ -18,12 +18,17 @@ BEGIN { # Test for SQLT-related leaks { my $s = DBICTest::Schema->clone; - create_schema ({ schema => $s }); + my $sqlt_schema = create_schema ({ schema => $s }); Scalar::Util::weaken ($s); ok (!$s, 'Schema not leaked'); + + isa_ok ($sqlt_schema, 'SQL::Translator::Schema', 'SQLT schema object produced'); } +# make sure classname-style works +lives_ok { isa_ok (create_schema ({ schema => 'DBICTest::Schema' }), 'SQL::Translator::Schema', 'SQLT schema object produced') }; + my $schema = DBICTest->init_schema(); # Dummy was yanked out by the sqlt hook test