X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_mouse%2F007-attributes.t;h=4dba52afb7d8cd9def05a67652e607b224d225f8;hb=29cb82b7c53a275a299076477c09d5cbe4f2d160;hp=ae538e6bf487f963980107a1254909963ceb58b9;hpb=920139b3efca66d2caeeef306c97fa0da62c6b73;p=gitmo%2FMouse.git diff --git a/t/001_mouse/007-attributes.t b/t/001_mouse/007-attributes.t index ae538e6..4dba52a 100644 --- a/t/001_mouse/007-attributes.t +++ b/t/001_mouse/007-attributes.t @@ -1,11 +1,12 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 18; +use Test::More tests => 21; use Test::Exception; +use Test::Mouse; use lib 't/lib'; -use Test::Mouse; +use MooseCompat; do { package Class; @@ -62,3 +63,12 @@ $object->rw_attr(100); is $object->rw_attr, 100; is $object->read_attr, 100; +dies_ok { + Class->rw_attr(); +}; +dies_ok { + Class->read_attr(); +}; +dies_ok { + Class->write_attr(42); +};