Fix the logic somewhat
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Role / HoldsFoo.pm
CommitLineData
b463fcad 1package TestAppCustomContainer::Role::HoldsFoo;
2use Moose::Role;
ced6f9e2 3use Test::More;
b463fcad 4use namespace::autoclean;
5
6has foo => (
7 is => 'ro',
ced6f9e2 8# isa => 'TestAppCustomContainer::Model::Foo',
9# required => 1,
b463fcad 10);
11
ced6f9e2 12sub BUILD {}
13
14after BUILD => sub {
15 my $self = shift;
16 ok $self->foo;
17 isa_ok($self->foo, 'TestAppCustomContainer::Model::DefaultSetup');
18};
19
b463fcad 201;