handle weakening of anon classes here too
[gitmo/Moose.git] / t / 010_basics / 015_buildargs.t
index bff4aeb..2071b3d 100644 (file)
@@ -3,14 +3,14 @@
 use strict;
 use warnings;
 
-use Test::More tests => 14;
+use Test::More;
 
 {
     package Foo;
     use Moose;
 
     has bar => ( is => "rw" );
-    has baz => ( is => "rw" );    
+    has baz => ( is => "rw" );
 
     sub BUILDARGS {
         my ( $self, @args ) = @_;
@@ -24,7 +24,7 @@ use Test::More tests => 14;
     extends qw(Foo);
 }
 
-foreach my $class qw(Foo Bar) {
+foreach my $class (qw(Foo Bar)) {
     is( $class->new->bar, undef, "no args" );
     is( $class->new( bar => 42 )->bar, 42, "normal args" );
     is( $class->new( 37 )->bar, 37, "single arg" );
@@ -37,7 +37,7 @@ foreach my $class qw(Foo Bar) {
         my $o = $class->new(42, baz => 47);
         is($o->bar, 42, '... got the right bar');
         is($o->baz, 47, '... got the right bar');
-    }    
+    }
 }
 
-
+done_testing;