update git repo url
[p5sagit/Config-Any.git] / t / 52-json.t
index 555e74e..8bc5cc9 100644 (file)
@@ -5,7 +5,7 @@ use Test::More;
 use Config::Any;
 use Config::Any::JSON;
 
-if ( !Config::Any::JSON->is_supported ) {
+if ( !Config::Any::JSON->is_supported && !$ENV{RELEASE_TESTING} ) {
     plan skip_all => 'JSON format not supported';
 }
 else {
@@ -23,8 +23,8 @@ else {
     my $file = 't/invalid/conf.json';
     my $config = eval { Config::Any::JSON->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
@@ -32,6 +32,6 @@ else {
     my $file = 't/invalid/conf.json';
     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';
 }