X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F029-new.t;h=b8a615b029a1e22f90eb4f4c4547c08d27ba9de3;hb=8cbcbb47d0f02077d07873c553494a884d9c085f;hp=fe660a1f52caa8da09fdd93eadeccc4199c10f96;hpb=11d415286701d3b51e517cb6826138808967cb89;p=gitmo%2FMouse.git diff --git a/t/029-new.t b/t/029-new.t index fe660a1..b8a615b 100644 --- a/t/029-new.t +++ b/t/029-new.t @@ -37,9 +37,9 @@ throws_ok { Class->meta->make_immutable; throws_ok { - Class->new('non-hashref scalar'); + Class->new([]); } qr/Single parameters to new\(\) must be a HASH ref/; throws_ok { - Class->new(undef); + Class->new(Class->new); } qr/Single parameters to new\(\) must be a HASH ref/;