X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F006-cooperative.t;h=4d6d832fa6d3fd0cbcaab7e7685c610b3e6bec79;hb=7fc144c9cb90c2fc7f37fcf956f53bcefe369419;hp=fdae12fdd4da3c15ace71303e33ff256ba4314b0;hpb=abf9a01fc4e37ac63054ada972091a1ea25a78cb;p=gitmo%2FMooseX-Singleton.git diff --git a/t/006-cooperative.t b/t/006-cooperative.t index fdae12f..4d6d832 100644 --- a/t/006-cooperative.t +++ b/t/006-cooperative.t @@ -4,8 +4,8 @@ use warnings; use Test::More; use Test::Requires { - 'MooseX::StrictConstructor' => 0.01, # skip all if not installed - 'Test::Exception' => 0.01, + 'MooseX::StrictConstructor' => 0.16, + 'Test::Fatal' => 0.001, }; { @@ -17,9 +17,9 @@ use Test::Requires { has 'attrib' => ( is => 'rw' ); } -throws_ok { +like( exception { MySingleton->new( bad_name => 42 ); -} -qr/Found unknown attribute/, 'singleton class also has a strict constructor'; +}, +qr/Found unknown attribute/, 'singleton class also has a strict constructor'); done_testing;