remove whitespace
[gitmo/MooseX-Storage.git] / t / 104_io_w_utf8.t
index b7e9ea7..3af9d05 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
@@ -8,9 +6,12 @@ use File::Temp qw(tempdir);
 use File::Spec::Functions;
 my $dir = tempdir( CLEANUP => 1 );
 
-BEGIN { 
-    eval "use JSON::Any";
-    plan skip_all => "JSON::Any is required for this test" if $@;
+use Test::Requires {
+    'JSON::Any' => 0.01, # skip all if not installed
+    'IO::AtomicFile' => 0.01,
+};
+
+BEGIN {
     # NOTE:
     # this is because JSON::XS is
     # the only one which really gets
@@ -18,8 +19,8 @@ BEGIN {
     # - SL
     BEGIN {
         $ENV{JSON_ANY_ORDER}  = qw(XS);
-        $ENV{JSON_ANY_CONFIG} = "utf8=1"; 
-    } 
+        $ENV{JSON_ANY_CONFIG} = "utf8=0,canonical=1";
+    }
     plan tests => 8;
     use_ok('MooseX::Storage');
 }