X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=2ab43a33e45720e3de4cc65a6f8324d204939545;hb=HEAD;hp=85bf5abb774193487106d5f08548e75cd838492f;hpb=cb551b079b096630988312e22becd87fb54fb7de;p=dbsrgits%2FDBIx-Class.git diff --git a/t/99dbic_sqlt_parser.t b/t/99dbic_sqlt_parser.t index 85bf5ab..2ab43a3 100644 --- a/t/99dbic_sqlt_parser.t +++ b/t/99dbic_sqlt_parser.t @@ -1,14 +1,16 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use DBIx::Class::Optional::Dependencies -skip_all_without => 'deploy'; use strict; use warnings; +BEGIN { $ENV{DBICTEST_VIA_REPLICATED} = 0 } + use Test::More; use Test::Warn; use Test::Exception; use Scalar::Util (); -use lib qw(t/lib); use DBICTest; use DBIx::Class::_Util 'sigwarn_silencer'; @@ -48,8 +50,7 @@ lives_ok { isa_ok (create_schema ({ schema => 'DBICTest::Schema' }), 'SQL::Trans # make sure a connected instance passed via $args does not get the $dbh improperly serialized SKIP: { - # YAML is a build_requires dep of SQLT - it may or may not be here - eval { require YAML } or skip "Test requires YAML.pm", 1; + DBIx::Class::Optional::Dependencies->skip_without( 'YAML>=0' ); lives_ok { @@ -195,7 +196,7 @@ lives_ok (sub { { package DBICTest::PartialSchema; - use base qw/DBIx::Class::Schema/; + use base qw/DBICTest::BaseSchema/; __PACKAGE__->load_classes( { 'DBICTest::Schema' => [qw/