Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 010_basics / 015_buildargs.t
index e2cdbd4..47c074b 100644 (file)
@@ -1,12 +1,9 @@
 #!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
 
 use strict;
 use warnings;
 
-use Test::More;
+use Test::More tests => 14;
 
 {
     package Foo;
@@ -27,7 +24,7 @@ use Test::More;
     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" );
@@ -43,4 +40,4 @@ foreach my $class qw(Foo Bar) {
     }
 }
 
-done_testing;
+