Convert all tests to done_testing.
[gitmo/Class-MOP.git] / t / 301_RT_27329_fix.t
index bfb0fe3..0c8ee6a 100644 (file)
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 8;
+use Test::More;
 
 use Class::MOP;
 
@@ -14,13 +14,13 @@ This tests a bug sent via RT #27329
 {
     package Foo;
     use metaclass;
-    
+
     Foo->meta->add_attribute('foo' => (
         init_arg => 'foo',
         reader   => 'get_foo',
         default  => 'BAR',
     ));
-    
+
 }
 
 my $foo = Foo->meta->new_object;
@@ -32,7 +32,7 @@ is($foo->get_foo, 'BAR', '... got the right default value');
     my $clone = $foo->meta->clone_object($foo, foo => 'BAZ');
     isa_ok($clone, 'Foo');
     isnt($clone, $foo, '... and it is a clone');
-    
+
     is($clone->get_foo, 'BAZ', '... got the right cloned value');
 }
 
@@ -40,12 +40,8 @@ is($foo->get_foo, 'BAR', '... got the right default value');
     my $clone = $foo->meta->clone_object($foo, foo => undef);
     isa_ok($clone, 'Foo');
     isnt($clone, $foo, '... and it is a clone');
-        
+
     ok(!defined($clone->get_foo), '... got the right cloned value');
 }
 
-
-
-
-
-
+done_testing;