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=0f80d26ababcba1a80e1a802f68135c0d131110a;hp=b6d1f9e7102fb5eb09fe9aa81bfe3662f55b0d63;hb=c2a19f634f7a084c1e9c76142d4e7554895d454b;hpb=67a1cd509bfc3f77a4fcaf42710de01597987bb0 diff --git a/t/55-yaml.t b/t/55-yaml.t index b6d1f9e..0f80d26 100644 --- a/t/55-yaml.t +++ b/t/55-yaml.t @@ -6,7 +6,7 @@ use Test::More; use Config::Any; use Config::Any::YAML; -if ( !Config::Any::YAML->is_supported ) { +if ( !Config::Any::YAML->is_supported && !$ENV{RELEASE_TESTING} ) { plan skip_all => 'YAML format not supported'; } else { @@ -24,8 +24,8 @@ else { my $file = 't/invalid/conf.yml'; my $config = eval { Config::Any::YAML->load( $file ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; } # parse error generated on invalid config @@ -33,6 +33,6 @@ else { my $file = 't/invalid/conf.yml'; my $config = eval { Config::Any->load_files( { files => [$file], use_ext => 1} ) }; - ok( !$config, 'config load failed' ); - ok( $@, "error thrown ($@)" ); + is $config, undef, 'config load failed'; + isnt $@, '', 'error thrown'; }