prereq report test
[p5sagit/Config-Any.git] / t / 55-yaml.t
index b6d1f9e..0f80d26 100644 (file)
@@ -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';
 }