X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=f69201fc803275db2655ba64e3726ad2f0dd8592;hb=b98b8f867754f1c69f1cae8ac1b6fc0bb2544e3a;hp=b159e77f769d51ed16191debcf471da597eb52e0;hpb=4a070866bc7b2cf1792322865e0c7997ef7401a3;p=gitmo%2FMooseX-StrictConstructor.git diff --git a/t/basic.t b/t/basic.t index b159e77..f69201f 100644 --- a/t/basic.t +++ b/t/basic.t @@ -80,26 +80,6 @@ use Test::More; has 'size' => ( is => 'rw', 'init_arg' => undef ); } -{ - local $@; - eval q[package MyRole; use Moose::Role; use MooseX::StrictConstructor;]; - like( - $@, - qr/can only be applied to Moose classes/, - "can't apply MXSC to a role" - ); -} - -{ - local $@; - eval q[package Nothing; use MooseX::StrictConstructor;]; - like( - $@, - qr/can only be applied to Moose classes/, - "can't apply MXSC to a random package", - ); -} - my @classes = qw( Standard Stricter Subclass StrictSubclass OtherStrictSubclass Tricky InitArg );