Avoid duplication in running the same tests with and without immutable
[gitmo/Moose.git] / t / 040_type_constraints / 007_util_more_type_coercion.t
index e61538f..2bcafc1 100644 (file)
@@ -3,12 +3,10 @@
 use strict;
 use warnings;
 
-use Test::More tests => 26;
+use Test::More tests => 25;
 use Test::Exception;
 
-BEGIN {
-    use_ok('Moose');           
-}
+
 
 {
     package HTTPHeader;
@@ -17,7 +15,9 @@ BEGIN {
     
     coerce 'HTTPHeader'
         => from ArrayRef 
-            => via { HTTPHeader->new(array => $_[0]) }
+            => via { HTTPHeader->new(array => $_[0]) };
+            
+    coerce 'HTTPHeader'
         => from HashRef 
             => via { HTTPHeader->new(hash => $_[0]) };