Convert all tests to done_testing.
[gitmo/Moose.git] / t / 040_type_constraints / 025_type_coersion_on_lazy_attributes.t
index ebe9d33..a935ffc 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 2;
+use Test::More;
 
 {
     package SomeClass;
@@ -14,8 +14,8 @@ use Test::More tests => 2;
         => where { /^6$/ };
     subtype 'TextSix' => as 'Str'
         => where { /Six/i };
-    coerce 'TextSix' 
-        => from 'DigitSix' 
+    coerce 'TextSix'
+        => from 'DigitSix'
         => via { confess("Cannot live without 6 ($_)") unless /^6$/; 'Six' };
 
     has foo => (
@@ -31,3 +31,4 @@ my $attr = SomeClass->meta->get_attribute('foo');
 is($attr->get_value(SomeClass->new()), 'Six');
 is(SomeClass->new()->foo, 'Six');
 
+done_testing;