package Dist::Zilla::Plugin::Test::CPAN::Meta::JSON;
use strict;
use warnings;
# ABSTRACT: release tests for your META.json
our $VERSION = '0.004'; # VERSION
use Moose;
extends 'Dist::Zilla::Plugin::
Bail if we find META.json
my $METAjson = 'META.json';
foreach my $file (@{ $self->zilla->files }) {
return if $file->name eq $METAjson;
}
# If META.json wasn't found, then pr
une out the test
my $test_filename = 'xt/release/meta-json.t';
foreach my $file (@{ $self->zilla->files }) {
next unless $file->name eq $test_filename;
$self->zilla->prune_fil