X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fjsonp.t;h=015ee512283bf986590de454877f621d233964ef;hb=9eb020313c3000fc09cfbc4741c5a6398cf9349c;hp=f5b884a286f4301629c6c9a6bdc8ccc60ec51508;hpb=f2d343397851d96c2081f6f753293c74899ef009;p=catagits%2FCatalyst-Action-REST.git diff --git a/t/jsonp.t b/t/jsonp.t index f5b884a..015ee51 100644 --- a/t/jsonp.t +++ b/t/jsonp.t @@ -2,15 +2,12 @@ use strict; use warnings; use Test::More; use FindBin; +use Test::Requires qw(JSON::MaybeXS); use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib"); use Test::Rest; use utf8; -eval 'use JSON 2.12'; -plan skip_all => 'Install JSON 2.12 or later to run this test' if ($@); - - use_ok 'Catalyst::Test', 'Test::Serialize', 'Catalyst::Action::Serialize::JSON'; my $json = JSON->new->utf8;