From: Karen Etheridge Date: Fri, 13 Nov 2020 04:28:52 +0000 (-0800) Subject: $JSON_Class is not JSON::XS if version < 3.0 X-Git-Tag: v1.004003~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b067b995c9c3d2d7a41e43ae4fa5de1a5ca43ba8;p=p5sagit%2FJSON-MaybeXS.git $JSON_Class is not JSON::XS if version < 3.0 e.g. see http://www.cpantesters.org/cpan/report/68a147b0-6c06-1014-b73a-88553f3bac98 --- diff --git a/Changes b/Changes index 34e711f..0a15e89 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for JSON-MaybeXS + - fix another test that fails when JSON::XS is installed, but below version 3.0 + 1.004002 - 2020-05-17 - fix test that fails when JSON::XS is installed, but below version 3.0 (RT#132578) diff --git a/t/xs.t b/t/xs.t index ddae943..f768a3b 100644 --- a/t/xs.t +++ b/t/xs.t @@ -10,7 +10,7 @@ use lib map { use Test::More 0.88; use JSON::MaybeXS; -use Test::Needs 'JSON::XS'; +use Test::Needs { 'JSON::XS' => '3.0' }; # load first, before JSON::MaybeXS diag 'Using JSON::XS ', JSON::XS->VERSION; is( JSON, 'JSON::XS', 'Correct JSON class' );