Merge branch 'master' into gsoc_breadboard
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Role / HoldsFoo.pm
1 package TestAppCustomContainer::Role::HoldsFoo;
2 use Moose::Role;
3 use Test::More;
4 use namespace::autoclean;
5
6 has foo => (
7     is       => 'ro',
8 #    isa      => 'TestAppCustomContainer::Model::Foo',
9 #    required => 1,
10 );
11
12 sub BUILD {}
13
14 after BUILD => sub {
15     my $self = shift;
16     ok($self->foo, ref($self) . " got a ->foo");
17     isa_ok($self->foo, 'TestAppCustomContainer::Model::DefaultSetup', ref($self) . " isa 'TestAppCustomContainer::Model::DefaultSetup'");
18 };
19
20 1;