X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F99dbic_sqlt_parser.t;h=51e25215e6f64cff87ff29e9001062002157e1a8;hb=cb421b66e82092e8fab0ed3a002061f7a4b9a641;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..51e2521 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 {