Standardize use of Test::Exception before converting to Test::Fatal
[gitmo/Moose.git] / t / 030_roles / 031_roles_applied_in_create.t
CommitLineData
87259f30 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
a28e50e4 6use Test::More;
53a4d826 7use Test::Exception;
87259f30 8use Moose::Meta::Class;
9use Moose::Util;
10
11use lib 't/lib', 'lib';
12
87259f30 13
f24d409f 14# Note that this test passed (pre svn #5543) if we inlined the role
15# definitions in this file, as it was very timing sensitive.
8b776b2d 16lives_ok {
17 my $builder_meta = Moose::Meta::Class->create(
18 'YATTA' => (
19 superclass => 'Moose::Meta::Class',
20 roles => [qw( Role::Interface Role::Child )],
21 )
22 );
23}
24'Create a new class with several roles';
87259f30 25
a28e50e4 26done_testing;