Make handles accept role TCs.
[gitmo/Moose.git] / t / 020_attributes / 013_attr_dereference_test.t
index 11b75d7..fa78897 100644 (file)
@@ -3,11 +3,10 @@
 use strict;
 use warnings;
 
-use Test::More tests => 11;
+use Test::More;
 use Test::Exception;
 
 
-
 {
     package Customer;
     use Moose;
@@ -19,7 +18,7 @@ use Test::Exception;
     ::lives_ok {
         has 'customers' => (
             is         => 'ro',
-            isa        => subtype('ArrayRef' => where { 
+            isa        => subtype('ArrayRef' => where {
                             (blessed($_) && $_->isa('Customer') || return) for @$_; 1 }),
             auto_deref => 1,
         );
@@ -68,14 +67,16 @@ use Test::Exception;
 
 {
     my $autoderef = AutoDeref->new;
-    
+
     dies_ok {
         $autoderef->bar(1, 2, 3);
     } '... its auto-de-ref-ing, not auto-en-ref-ing';
-    
-    lives_ok  { 
-        $autoderef->bar([ 1, 2, 3 ]) 
+
+    lives_ok  {
+        $autoderef->bar([ 1, 2, 3 ])
     } '... set the results of bar correctly';
 
     is_deeply [ $autoderef->bar ], [ 1, 2, 3 ], '... auto-dereffed correctly';
 }
+
+done_testing;