Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 334 Bytes
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
plan skip_all => 'JSON::XS is required for this test'
unless eval { require JSON::XS; 1 };
plan tests => 1;
my $bak = $ENV{MOJO_JSON};
require Mojo::JSON::Any;
my $json = Mojo::JSON::Any->new;
isa_ok($json, 'Mojo::JSON');
$ENV{MOJO_JSON} = $bak;
Something went wrong with that request. Please try again.