From: Shawn M Moore Date: Fri, 27 Jun 2008 02:33:37 +0000 (+0000) Subject: Make sure that with "A", "B" throws an error X-Git-Tag: 0.19~278 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3bfbec32383fa2a5fe67b01729ac36deec38e47;p=gitmo%2FMouse.git Make sure that with "A", "B" throws an error --- 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/; +