tests with perl 5.14 produce deprecation warnings (Todd Rinaldo)
[gitmo/Mouse.git] / t / 300_immutable / 009_buildargs.t
index b1e433b..f2959a9 100644 (file)
@@ -31,7 +31,7 @@ use Test::More;
     __PACKAGE__->meta->make_immutable;
 }
 
-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" );