X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F400-define-role.t;h=d5e9143cb8014c0cbb86d7b416d6de191f00f31b;hb=9b28c1d7f680305bfe0afda57775ec00eaf6219c;hp=4b27be5cd96ae1339900ae3b6d0d6193e34ade1e;hpb=7840048031b19bd4af654285aa855826be6fa544;p=gitmo%2FMouse.git diff --git a/t/400-define-role.t b/t/400-define-role.t index 4b27be5..d5e9143 100644 --- a/t/400-define-role.t +++ b/t/400-define-role.t @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 10; +use Test::More tests => 11; use Test::Exception; lives_ok { @@ -90,3 +90,10 @@ lives_ok { ::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/; +