Only set @ARGV if it's empty
[gitmo/Mouse.git] / t / 800_shikabased / 002-coerce_multi_class.t
index 87450fe..4fb0128 100644 (file)
@@ -38,7 +38,7 @@ eval {
 
     type 'Headers' => where { defined $_ && eval { $_->isa('Request::Headers') } };
 };
-like $@, qr/The type constraint 'Headers' has already been created, cannot be created again in Request/;
+like $@, qr/The type constraint 'Headers' has already been created in Response and cannot be created again in Request/;
 
 eval {
     package Request;
@@ -69,12 +69,12 @@ eval {
     use Mouse::Util::TypeConstraints;
 
     coerce 'Headers' =>
-        from 'HashRefa' => via {
+        from 'XXX' => via {
             Request::Headers->new(%{ $_ });
         },
     ;
 };
-like $@, qr/Could not find the type constraint \(HashRefa\) to coerce from/;
+like $@, qr/Could not find the type constraint \(XXX\) to coerce from/;
 
 eval {
     package Request;
@@ -92,7 +92,7 @@ eval {
     package Response;
     type 'Headers' => where { defined $_ && eval { $_->isa('Response::Headers') } };
 };
-like $@, qr/The type constraint 'Headers' has already been created, cannot be created again in Response/;
+like $@, qr/The type constraint 'Headers' has already been created in Response and cannot be created again in Response/;
 
 {
     package Request;