X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=t%2Frest%2Fdelete.t;h=0df60d53407f7784bf888743c86a89d938c8a133;hp=303455857bf36d68fabfa47967a4035fdf7d7c5e;hb=bb73aedb99734f11a8419f93915b87faf33ac1bf;hpb=0b0bf9111127c9fdad1e456169ec4cdd15b160f9 diff --git a/t/rest/delete.t b/t/rest/delete.t index 3034558..0df60d5 100644 --- a/t/rest/delete.t +++ b/t/rest/delete.t @@ -1,5 +1,3 @@ -use 5.6.0; - use strict; use warnings; @@ -13,9 +11,9 @@ use DBICTest; use Test::More; use Test::WWW::Mechanize::Catalyst 'RestTest'; use HTTP::Request::Common qw/ DELETE /; -use JSON; +use JSON::MaybeXS; -my $json = JSON->new->utf8; +my $json = JSON::MaybeXS->new(utf8 => 1); my $mech = Test::WWW::Mechanize::Catalyst->new; ok( my $schema = DBICTest->init_schema(), 'got schema' );