Changes for 0.24
[gitmo/MooseX-Singleton.git] / t / 006-cooperative.t
index ccc2695..4a52662 100644 (file)
@@ -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;