From: Jonathan Rockway Date: Wed, 29 Apr 2009 15:38:41 +0000 (-0500) Subject: fix tests; make default value for plugins {} X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=528dfa34f24cec2f5be9b7f7aad3b4ba7b85f6df;p=gitmo%2FMooseX-Runnable.git fix tests; make default value for plugins {} --- diff --git a/lib/MooseX/Runnable/Invocation.pm b/lib/MooseX/Runnable/Invocation.pm index c3786c7..8ff092d 100644 --- 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 --- 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;