From: Robert Sedlacek Date: Sat, 26 Nov 2011 00:37:16 +0000 (+0100) Subject: make Moo::Role test only run if it's installed X-Git-Tag: v1.000000~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24d6c55fe4452ad0226bcdbbf3826c52ec616636;p=p5sagit%2FPackage-Variant.git make Moo::Role test only run if it's installed --- diff --git a/t/20moo-param-role.t b/t/20moo-param-role.t index 2b33250..1b17f0a 100644 --- a/t/20moo-param-role.t +++ b/t/20moo-param-role.t @@ -2,6 +2,11 @@ use strictures 1; use Test::More qw(no_plan); BEGIN { + eval { require Moo::Role; 1 } + or plan skip_all => q{Requires Moo::Role}; +} + +BEGIN { package My::Role::OnOff; use Package::Variant