App-SpreadRevolutionaryDate

 view release on metacpan or  search on metacpan

t/new_target.t  view on Meta::CPAN


use Test::More tests => 5;
use Test::Output;
use Test::NoWarnings;

package App::SpreadRevolutionaryDate::Target::Ezln;
use Moose;
with 'App::SpreadRevolutionaryDate::Target' => {worker => 'Bool'};
use namespace::autoclean;

has 'subcomandantes' => (is => 'ro', isa => 'ArrayRef[Str]', required => 1);
has 'land' => (is => 'ro', isa => 'Str', required => 1);

around BUILDARGS => sub {
  my ($orig, $class) = @_;

  # App::SpreadRevolutionaryDate::Target consumer classes
  # should have a mandatory 'obj' parameter valued by an
  # instance of the 'worker' class.
  # Since we do not need any worker here to simply printing
  # an output message, we just defined the 'worker' as 'Bool'



( run in 0.490 second using v1.01-cache-2.11-cpan-5f2e87ce722 )