From: Shawn M Moore Date: Tue, 9 Dec 2008 03:40:18 +0000 (+0000) Subject: Make this coerce test more discriminating X-Git-Tag: 0.19~124 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a16e6d1a0c2d137f476f133208d682cbd86273e;p=gitmo%2FMouse.git Make this coerce test more discriminating --- diff --git a/t/501_moose_coerce_mouse.t b/t/501_moose_coerce_mouse.t index 2865e7d..1d8cc19 100644 --- a/t/501_moose_coerce_mouse.t +++ b/t/501_moose_coerce_mouse.t @@ -43,10 +43,14 @@ use Test::Exception; } { + local $TODO = "Doesn't work in the constructor yet?"; my $r = Mosponse->new(headers => { foo => 'bar' }); - local our $TODO = "Moose not yet aware of Mouse meta"; isa_ok($r->headers, 'Headers'); is(eval{$r->headers->foo}, 'bar'); +} + +{ + my $r = Mosponse->new; $r->headers({foo => 'yay'}); isa_ok($r->headers, 'Headers'); is($r->headers->foo, 'yay');