Switch everything to autoclean. Add sanity tests to ensure appropriate modern perl...
[catagits/CatalystX-DynamicComponent.git] / t / 00load_and_sane.t
CommitLineData
046d763d 1use strict;
2use warnings;
3
4use FindBin qw/$Bin/;
5use lib "$Bin/../lib";
6
7use List::MoreUtils qw/any/;
8use Module::Find;
9setmoduledirs("$Bin/../lib");
10
11use Test::More tests => 4;
12use Test::Exception;
13
14my @modules;
15lives_ok {
16 @modules = (useall('CtaalystX'), useall('DynamicAppDemo'));
17} 'Use all';
18ok @modules;
19
20ok ! any(sub { ! $_->isa('Moose::Object') }, @modules),
21 'Moose in da hoose';
22
23ok ! any(sub { $_->can('has') }, @modules),
24 'However, no lolcat to be found';
25