X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F011_create_class.t;h=1770990d063fb3b85935d3da4fa50decb1eebdad;hb=13b8971fa6cc4edf7d55a2e5482820d62ba38f16;hp=2267b5e119dab0630d7027df88e93c96dcc96a12;hpb=7ac8038438a75837e0d4976dd45cb53f77124fb4;p=gitmo%2FClass-MOP.git diff --git a/t/011_create_class.t b/t/011_create_class.t index 2267b5e..1770990 100644 --- a/t/011_create_class.t +++ b/t/011_create_class.t @@ -2,7 +2,7 @@ use strict; use warnings; use Test::More; -use Test::Exception; +use Test::Fatal; use Class::MOP; @@ -73,9 +73,9 @@ is($point->y, 42, '... the y attribute was set properly with the accessor'); is($point->x, 2, '... the x attribute was initialized correctly through the metaobject'); -dies_ok { +ok exception { $point->x(42); -} '... cannot write to a read-only accessor'; +}, '... cannot write to a read-only accessor'; is($point->x, 2, '... the x attribute was not altered'); $point->clear();