X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F029-new.t;h=b8a615b029a1e22f90eb4f4c4547c08d27ba9de3;hb=85dcdab5610b5610f80e2c02233fbb87baab98ce;hp=4e642ebae5fabbe6bd8462a49d242cfabe961d8c;hpb=c9aefe2628c559c55abe2ddc8de6c92a5d9dbbaf;p=gitmo%2FMouse.git diff --git a/t/029-new.t b/t/029-new.t index 4e642eb..b8a615b 100644 --- a/t/029-new.t +++ b/t/029-new.t @@ -8,7 +8,9 @@ do { package Class; use Mouse; - has 'x'; + has x => ( + is => 'bare', + ); has y => ( is => 'ro', @@ -35,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/;