X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_mouse%2F024-isa.t;fp=t%2F001_mouse%2F024-isa.t;h=1a0e53d2640ee6a88c8960db64cc48d59ae56cf5;hb=537873b064ad328ea662e3792b128d9b016ed38a;hp=ee970db6f8b782893ac57e3161013c39bd621619;hpb=b5956f03156c79cfbdd20f9526f95a9df5aa26b4;p=gitmo%2FMouse.git diff --git a/t/001_mouse/024-isa.t b/t/001_mouse/024-isa.t index ee970db..1a0e53d 100644 --- a/t/001_mouse/024-isa.t +++ b/t/001_mouse/024-isa.t @@ -88,13 +88,13 @@ for my $type (@types) { my $via_new; throws_ok { $via_new = Class->new($type => $value); - } qr/Attribute \($type\) does not pass the type constraint because: Validation failed for '$type' failed with value \Q$display\E/; + } qr/Attribute \($type\) does not pass the type constraint because: Validation failed for '$type' with value \Q$display\E/; is($via_new, undef, "no object created"); my $via_set = Class->new; throws_ok { $via_set->$type($value); - } qr/Attribute \($type\) does not pass the type constraint because: Validation failed for '$type' failed with value \Q$display\E/; + } qr/Attribute \($type\) does not pass the type constraint because: Validation failed for '$type' with value \Q$display\E/; is($via_set->$type, undef, "value for $type not set"); }