X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=t%2F55-yaml.t;h=3c95831e6e28243d9687002642d136fc6064ccb3;hp=049b79f68ec175111ee8b426bd19778e8834582e;hb=8af0a7cf96c671f13244fec2e0f15a4c13f2737d;hpb=f0e3c2214342d0d8a8839009b8b9c7e6bfbc7ab2 diff --git a/t/55-yaml.t b/t/55-yaml.t index 049b79f..3c95831 100644 --- a/t/55-yaml.t +++ b/t/55-yaml.t @@ -1,11 +1,18 @@ -use Test::More tests => 2; +use strict; +use warnings; +use Test::More; use Config::Any::YAML; -my $config = eval { Config::Any::YAML->load( 't/conf/conf.yml' ) }; +if ( !Config::Any::YAML->is_supported ) { + plan skip_all => 'YAML format not supported'; +} +else { + plan tests => 2; +} -SKIP: { - skip "Couldn't Load YAML plugin", 2 if $@; +{ + my $config = Config::Any::YAML->load( 't/conf/conf.yml' ); ok( $config ); is( $config->{ name }, 'TestApp' ); }