projects
/
gitmo/MooseX-Runnable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0c9cfd2
)
fix tests; make default value for plugins {}
Jonathan Rockway [Wed, 29 Apr 2009 15:38:41 +0000 (10:38 -0500)]
lib/MooseX/Runnable/Invocation.pm
patch
|
blob
|
blame
|
history
t/basic.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Runnable/Invocation.pm
b/lib/MooseX/Runnable/Invocation.pm
index
c3786c7
..
8ff092d
100644
(file)
--- a/
lib/MooseX/Runnable/Invocation.pm
+++ b/
lib/MooseX/Runnable/Invocation.pm
@@
-26,7
+26,7
@@
has 'class' => (
has 'plugins' => (
is => 'ro',
isa => HashRef[ArrayRef[Str]],
- default => sub { [] },
+ default => sub { +{} },
required => 1,
auto_deref => 1,
);
diff --git
a/t/basic.t
b/t/basic.t
index
cafd6d7
..
7a490ae
100644
(file)
--- a/
t/basic.t
+++ b/
t/basic.t
@@
-44,7
+44,7
@@
is $code, 6, 'run worked';
$invocation = MooseX::Runnable::Invocation->new(
class => 'Class',
- plugins => ['+MooseX::Runnable::Invocation::Plugin::ExitFixer'],
+ plugins => {'+MooseX::Runnable::Invocation::Plugin::ExitFixer' => []},
);
ok $invocation;