1
2use Test::More;
3use Test::Exception;
4
5use lib 't/lib';
6use GenErrorRegex qw< badval_error badtype_error >;
7
8
9# Final test: make sure we can load up our role file which adds method modifiers for methods that
10# don't exist.  That's okay for roles, so we need to make sure we're allowing it.
11#
12# In this case, as long as the module loads okay, we're good.
13
14
15SKIP:
16{
17    eval { require MooseX::Declare } or skip "MooseX::Declare required for this test", 1;
18
19    # have to require here or else we try to load MXD before we check for it not being there (above)
20    lives_ok { require MS_MXD_Role } "role method modifiers load okay";
21
22}
23
24
25done_testing();
26