X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010-required.t;h=e6a69909d2729459ad12a6b55135c4fcbd3ae75c;hb=82657d71333fb807a2b0749e51b6ecc15a625024;hp=6962a299a830c531f99efa3cb46708ee703164a0;hpb=3118622d182add6c88792d5de3b4af047e8a7c8c;p=gitmo%2FMouse.git diff --git a/t/010-required.t b/t/010-required.t index 6962a29..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 t::Exception; +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 }, );