8 # if we autoclean here there's nothing left and then load_class tries
9 # to require Foo during Moose application and everything breaks.
14 use namespace::autoclean;
27 ::ok(!__PACKAGE__->can('has'), 'No has function after no Moose;');
28 Moose::with('Baz', 'Bar');
31 ::is(Baz->can('thing'), Bar->can('thing'), 'Role copies method correctly');
32 ::ok(Baz->can('attr'), 'Attr accessor correct');
33 ::ok(!Bar->can('has'), 'Moo::Role sugar removed by autoclean');
34 ::ok(!Bar->can('with'), 'Role::Tiny sugar removed by autoclean');
35 ::ok(!Baz->can('has'), 'Sugar not copied');