Require the latest CMOP
[gitmo/Moose.git] / t / 100_bugs / 011_DEMOLISH_eats_exceptions.t
index 5813892..4932fe2 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 use FindBin;
 
-use Test::More tests => 144;
+use Test::More;
 use Test::Exception;
 
 use Moose::Util::TypeConstraints;
@@ -115,32 +115,32 @@ sub check_em {
          ::is( $obj, undef, "... the object is undef" );
      }
      {
-         local $@;        
+         local $@;
          my $obj = eval { $pkg->new ( notanattr => 1 ); };
          ::like( $@, qr/is required/, "... $pkg undef" );
          ::is( $obj, undef, "... the object is undef" );
      }
 
      {
-         local $@;        
+         local $@;
          my $obj = eval { $pkg->new ( %param ); };
          ::like( $@, qr/is required/, "... $pkg undef param" );
          ::is( $obj, undef, "... the object is undef" );
      }
      {
-         local $@;        
+         local $@;
          my $obj = eval { $pkg->new ( path => '/' ); };
          ::like( $@, qr/does not pass the type constraint/, "... $pkg root path forbidden" );
          ::is( $obj, undef, "... the object is undef" );
      }
      {
-         local $@;        
+         local $@;
          my $obj = eval { $pkg->new ( path => '/this_path/does/not_exist' ); };
          ::like( $@, qr/does not exist/, "... $pkg non existing path" );
          ::is( $obj, undef, "... the object is undef" );
      }
      {
-         local $@;        
+         local $@;
          my $obj = eval { $pkg->new ( path => $FindBin::Bin ); };
          ::is( $@, '', "... $pkg no error" );
          ::isa_ok( $obj, $pkg );
@@ -149,5 +149,4 @@ sub check_em {
      }
 }
 
-1;
-
+done_testing;