use strict;
use warnings;
-use Test::More;
+use Test::More tests => 1;
use Test::Exception;
use Moose::Meta::Class;
use Moose::Util;
use lib 't/lib', 'lib';
-plan tests => 1;
-my $builder_meta = Moose::Meta::Class->create(
- 'YATTA' => (
- superclass => 'Moose::Meta::Class',
- roles => [ qw( Role::Interface Role::Child ) ],
- )
+# Note that this test passes if we inline the role definitions in this file.
+lives_ok(
+ sub {
+ my $builder_meta = Moose::Meta::Class->create(
+ 'YATTA' => (
+ superclass => 'Moose::Meta::Class',
+ roles => [qw( Role::Interface Role::Child )],
+ )
+ );
+ },
+ 'Create a new class with several roles'
);
-ok 1;
-