projects
/
p5sagit/Package-Variant.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
783c658
)
make Moo::Role test only run if it's installed
Robert Sedlacek [Sat, 26 Nov 2011 00:37:16 +0000 (
01:37
+0100)]
t/20moo-param-role.t
patch
|
blob
|
blame
|
history
diff --git
a/t/20moo-param-role.t
b/t/20moo-param-role.t
index
2b33250
..
1b17f0a
100644
(file)
--- 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