Adding a role changes the method map, but it will not change the
[gitmo/Moose.git] / t / 030_roles / 031_roles_applied_in_create.t
CommitLineData
87259f30 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
e33d8fa8 6use Test::More tests => 1;
87259f30 7use Test::Exception;
8use Moose::Meta::Class;
9use Moose::Util;
10
11use lib 't/lib', 'lib';
12
87259f30 13
1a875270 14# Note that this test passes if we inline the role definitions in this
15# file, and it passes now that Class::MOP::load_class was changed to
16# do eval "require $module" rather than loading the module by
17# path. Perl is a strange beast.
e33d8fa8 18lives_ok(
19 sub {
20 my $builder_meta = Moose::Meta::Class->create(
21 'YATTA' => (
22 superclass => 'Moose::Meta::Class',
23 roles => [qw( Role::Interface Role::Child )],
24 )
25 );
26 },
27 'Create a new class with several roles'
87259f30 28);
29