#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 10;
+use Test::More tests => 11;
use Test::Exception;
lives_ok {
no Mouse::Role;
};
-lives_ok {
+throws_ok {
package Role;
use Mouse::Role;
with 'Other::Role';
no Mouse::Role;
-};
+} qr/Role does not currently support 'with'/;
lives_ok {
package Role;
::is(blessed($obj), "Impromptu::Class");
};
+throws_ok {
+ package Class;
+ use Mouse;
+
+ with 'Role', 'Other::Role';
+} qr/Mouse::Role only supports 'with' on individual roles at a time/;
+