X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fbasic.t;h=5252dc9a5200a8ea07aaead513cdea33a50a359a;hb=451d6c408ded89537e79b32391112d7a3b2c1ff3;hp=2a11bfca19cbd55ab6f63e9861df848823c55ea1;hpb=8834a28e7b417b9a759785bb99be3e36fa197080;p=gitmo%2FMooseX-StrictConstructor.git diff --git a/t/basic.t b/t/basic.t index 2a11bfc..5252dc9 100644 --- a/t/basic.t +++ b/t/basic.t @@ -3,7 +3,7 @@ use warnings; use Test::Fatal; use Test::Moose qw( with_immutable ); -use Test::More; +use Test::More 0.88; { package Standard; @@ -119,15 +119,15 @@ with_immutable { ); is( - exception { OtherStrictSubclass->new( thing => 1, size => 'large', ) } - , undef, - 'strict subclass from parent that doesn\'t use strict constructor handles known attributes correctly' + exception { OtherStrictSubclass->new( thing => 1, size => 'large', ) }, + undef, + q{strict subclass from parent that doesn't use strict constructor handles known attributes correctly} ); like( exception { OtherStrictSubclass->new( thing => 1, bad => 99 ) }, qr/unknown attribute.+: bad/, - 'strict subclass from parent that doesn\'t use strict correctly recognizes bad attribute' + q{strict subclass from parent that doesn't use strict correctly recognizes bad attribute} ); is(