Standardize use of Test::Exception before converting to Test::Fatal
[gitmo/Moose.git] / t / 100_bugs / 026_create_anon_recursion.t
CommitLineData
d2470ccf 1use strict;
39bb3aa5 2use warnings;
3
a28e50e4 4use Test::More;
53a4d826 5use Test::Exception;
39bb3aa5 6
d2470ccf 7use Moose::Meta::Class;
8
9$SIG{__WARN__} = sub { die if shift =~ /recurs/ };
10
b68c3910 11TODO:
12{
13 local $TODO
14 = 'Loading Moose::Meta::Class without loading Moose.pm causes weird problems';
15
16 my $meta;
53a4d826 17 lives_ok {
b68c3910 18 $meta = Moose::Meta::Class->create_anon_class(
19 superclasses => [ 'Moose::Object', ],
20 );
53a4d826 21 }
b68c3910 22 'Class is created successfully';
23}
a28e50e4 24
25done_testing;