Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 711 Bytes
#!/usr/bin/perl -w
use strict;
use Test::More;
# Skip if doing a regular install
plan skip_all => "Author tests not required for installation"
unless ( $ENV{AUTOMATED_TESTING} );
eval "use Test::CPAN::Meta::JSON";
plan skip_all => "Test::CPAN::Meta::JSON required for testing META.json files" if $@;
plan 'no_plan';
my $meta = meta_spec_ok(undef,undef,@_);
use Labyrinth::Plugin::Core;
my $version = $Labyrinth::Plugin::Core::VERSION;
is($meta->{version},$version,
'META.json distribution version matches');
if($meta->{provides}) {
for my $mod (keys %{$meta->{provides}}) {
is($meta->{provides}{$mod}{version},$version,
"META.json entry [$mod] version matches");
}
}
Jump to Line
Something went wrong with that request. Please try again.