Bad kitty, ->can't('has')
[catagits/CatalystX-DynamicComponent.git] / t / 00load_and_sane.t
CommitLineData
046d763d 1use strict;
2use warnings;
3
065fbd81 4# FIXME - Not sure if this does what I think it does, test..
5
046d763d 6use FindBin qw/$Bin/;
104abdae 7use lib "$Bin/lib";
046d763d 8
9use List::MoreUtils qw/any/;
10use Module::Find;
104abdae 11setmoduledirs("$Bin/../lib", "$Bin/lib");
046d763d 12
13use Test::More tests => 4;
14use Test::Exception;
15
16my @modules;
17lives_ok {
18 @modules = (useall('CtaalystX'), useall('DynamicAppDemo'));
19} 'Use all';
20ok @modules;
21
22ok ! any(sub { ! $_->isa('Moose::Object') }, @modules),
23 'Moose in da hoose';
24
25ok ! any(sub { $_->can('has') }, @modules),
26 'However, no lolcat to be found';
27