X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010-required.t;h=e6a69909d2729459ad12a6b55135c4fcbd3ae75c;hb=ff6870694bb440c13826e0f0fa25e760247fd24e;hp=0bf5f83cac9ddfebdbbd17c3785f7dbe1cb5d0b2;hpb=8c831d08b0d23c9dfcc4a85f6444915c988b5538;p=gitmo%2FMouse.git diff --git a/t/010-required.t b/t/010-required.t index 0bf5f83..e6a6990 100644 --- a/t/010-required.t +++ b/t/010-required.t @@ -2,22 +2,25 @@ use strict; use warnings; use Test::More tests => 3; -use Mouse::Util ':test'; +use Test::Exception; do { package Class; use Mouse; has foo => ( + is => 'bare', required => 1, ); has bar => ( + is => 'bare', required => 1, default => 50, ); has baz => ( + is => 'bare', required => 1, default => sub { 10 }, );