Convert all tests to done_testing.
[gitmo/Moose.git] / t / 100_bugs / 006_handles_foreign_class_bug.t
index b4db4c7..82bad20 100644 (file)
@@ -3,16 +3,16 @@
 use strict;
 use warnings;
 
-use Test::More tests => 15;
+use Test::More;
 use Test::Exception;
 
 {
     package Foo;
 
-    sub new { 
-        bless({}, 'Foo') 
+    sub new {
+        bless({}, 'Foo')
     }
-    
+
     sub a { 'Foo::a' }
 }
 
@@ -29,7 +29,7 @@ use Test::Exception;
             handles => qr/^a$/,
         );
     } '... can create the attribute with delegations';
-    
+
 }
 
 my $bar;
@@ -55,7 +55,7 @@ $SIG{__WARN__} = sub { push @w, "@_" };
             handles => qr/.*/,
         );
     } '... can create the attribute with delegations';
-    
+
 }
 
 is(@w, 0, "no warnings");
@@ -88,7 +88,7 @@ is($baz->a, 'Foo::a', '... got the right delgated value');
             handles => [qw(a new)],
         );
     } '... can create the attribute with delegations';
-    
+
 }
 
 {
@@ -108,4 +108,4 @@ isa_ok($blart, 'Blart');
 
 is($blart->a, 'Foo::a', '... got the right delgated value');
 
-
+done_testing;