X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F029-new.t;h=b8a615b029a1e22f90eb4f4c4547c08d27ba9de3;hp=fe660a1f52caa8da09fdd93eadeccc4199c10f96;hb=a09601ab6f3b4b6efb78d3f24a050fec92dcf02f;hpb=bf8e5b90e442d6ec7dbb837a051f547d685ee2e9 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/;