X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F104_io_w_utf8.t;h=72fe8f9b6d8ab4df2853a0ed6afb2bdcb75494e5;hb=cd4cef76da2af19af449e8c4c366e3111c6530ba;hp=6cc5ec5f75c12c239964a9825f6f510f8ed2233d;hpb=5e5d4e282f78965168236c6631705cae8d5d01de;p=gitmo%2FMooseX-Storage.git diff --git a/t/104_io_w_utf8.t b/t/104_io_w_utf8.t index 6cc5ec5..72fe8f9 100644 --- a/t/104_io_w_utf8.t +++ b/t/104_io_w_utf8.t @@ -8,18 +8,21 @@ use File::Temp qw(tempdir); use File::Spec::Functions; my $dir = tempdir( CLEANUP => 1 ); +use Test::Requires { + 'JSON::Any' => 0.01, # skip all if not installed + 'IO::AtomicFile' => 0.01, +}; + BEGIN { - eval "use JSON::Any"; - plan skip_all => "JSON::Any is required for this test" if $@; # NOTE: # this is because JSON::XS is # the only one which really gets # utf8 correct # - SL - BEGIN { + 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'); }