Convert all tests to done_testing.
[gitmo/Moose.git] / t / 020_attributes / 021_method_generation_rules.t
index 5876190..646e572 100644 (file)
@@ -3,11 +3,10 @@
 use strict;
 use warnings;
 
-use Test::More tests => 17;
+use Test::More;
 use Test::Exception;
 
 
-
 =pod
 
     is => rw, writer => _foo    # turns into (reader => foo, writer => _foo)
@@ -18,11 +17,11 @@ use Test::Exception;
 =cut
 
 sub make_class {
-       my ($is, $attr, $class) = @_;
+    my ($is, $attr, $class) = @_;
 
-       eval "package $class; use Moose; has 'foo' => ( is => '$is', $attr => '_foo' );";
+    eval "package $class; use Moose; has 'foo' => ( is => '$is', $attr => '_foo' );";
 
-       return $@ ? die $@ : $class;
+    return $@ ? die $@ : $class;
 }
 
 my $obj;
@@ -61,3 +60,4 @@ is($obj->_foo(), 1, "$class->foo is reader");
 
 dies_ok { make_class('ro', 'accessor', "Test::Class::AccessorRO"); } "Cant define attr with ro + accessor";
 
+done_testing;