Remove the redefine type tests for now, they'll go in a separate file
[gitmo/Mouse.git] / t / 800_shikabased / 002-coerce_multi_class.t
index b2d26b8..0e2d903 100644 (file)
@@ -1,6 +1,6 @@
 use strict;
 use warnings;
-use Test::More tests => 14;
+use Test::More tests => 13;
 
 {
     package Response::Headers;
@@ -88,12 +88,6 @@ eval {
 };
 ok !$@;
 
-eval {
-    package Response;
-    type 'Headers' => where { defined $_ && eval { $_->isa('Response::Headers') } };
-};
-like $@, qr/The type constraint 'Headers' has already been created in Response and cannot be created again in Response/;
-
 {
     package Request;
     use Mouse;
@@ -105,7 +99,6 @@ like $@, qr/The type constraint 'Headers' has already been created in Response a
     );
 }
 
-
 my $req = Request->new(headers => { foo => 'bar' });
 isa_ok($req->headers, 'Response::Headers');
 is($req->headers->foo, 'bar');
@@ -119,3 +112,4 @@ is($res->headers->foo, 'bar');
 $res->headers({foo => 'yay'});
 isa_ok($res->headers, 'Response::Headers');
 is($res->headers->foo, 'yay');
+