X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Singleton.git;a=blobdiff_plain;f=t%2F006-cooperative.t;h=ed5d2c09e23801b954209a244ef495f650a2a55e;hp=7924cc3d99904a364077f88861a715cb576de2fd;hb=4c25692312665e52f72b16a0a3086046590cf46a;hpb=2cb90d536c9fe23d25b545966ce509e7da73fa68 diff --git a/t/006-cooperative.t b/t/006-cooperative.t index 7924cc3..ed5d2c0 100644 --- a/t/006-cooperative.t +++ b/t/006-cooperative.t @@ -5,7 +5,8 @@ use Test::More; BEGIN { eval "require MooseX::StrictConstructor; use Test::Exception; 1;"; - plan skip_all => 'This test requires MooseX::StrictConstructor and Test::Exception' + plan skip_all => + 'This test requires MooseX::StrictConstructor and Test::Exception' if $@; } @@ -17,12 +18,10 @@ plan 'no_plan'; use MooseX::Singleton; use MooseX::StrictConstructor; - has 'attrib' => - is => 'rw'; + has 'attrib' => is => 'rw'; } throws_ok { - MySingleton->new( bad_name => 42 ) + 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';