X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F006-cooperative.t;h=4a5266287fc802f6c4dc675065a5ab199bc176d5;hb=e6fd0d07a3e79832893c8095ec634f9481c6aff9;hp=ccc269538acad81d98a0325d6ea379d2898a9869;hpb=089ff853cafa20edf9eb81b160741487696d66cb;p=gitmo%2FMooseX-Singleton.git diff --git a/t/006-cooperative.t b/t/006-cooperative.t index ccc2695..4a52662 100644 --- a/t/006-cooperative.t +++ b/t/006-cooperative.t @@ -4,14 +4,12 @@ use warnings; use Test::More; BEGIN { - eval "require MooseX::StrictConstructor; use Test::Exception; 1;"; + eval "require MooseX::StrictConstructor; use Test::Exception;"; plan skip_all => 'This test requires MooseX::StrictConstructor and Test::Exception' if $@; } -plan 'no_plan'; - { package MySingleton; use Moose; @@ -25,3 +23,5 @@ throws_ok { MySingleton->new( bad_name => 42 ); } qr/Found unknown attribute/, 'singleton class also has a strict constructor'; + +done_testing;