From: Shawn M Moore Date: Sun, 8 Mar 2009 08:01:34 +0000 (-0400) Subject: Properly todoify these role-role tests X-Git-Tag: 0.05~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8dc27d7e6eb3f3f59ae96c981c0eb69f5d5da387;p=gitmo%2FMooseX-Role-Parameterized.git Properly todoify these role-role tests --- diff --git a/t/150-composite-role-application.t b/t/150-composite-role-application.t index 42464e6..fcf4460 100644 --- a/t/150-composite-role-application.t +++ b/t/150-composite-role-application.t @@ -2,7 +2,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 6; use Test::Exception; do { @@ -49,10 +49,11 @@ do { MyCompositeRoleB => { accessor => 'bar' }; }; -lives_ok { +TODO: { + local $TODO = "role-role application for parameterized roles doesn't work yet"; ok(MyDoubleConsumer->can('foo'), 'first role in composite applied successfully'); ok(MyDoubleConsumer->can('bar'), 'second role in composite applied successfully'); -} 'testing composite roles lived'; +}; do { package MyExtendingRole; @@ -81,10 +82,11 @@ do { MyExtendingRole => { foo => 23 }; }; -lives_ok { +TODO: { + local $TODO = "role-role application for parameterized roles doesn't work yet"; ok(MyExtendedConsumer->can('bar'), 'role composed through other role applied successfully'); - is(MyExtendedConsumer->new->foo, 23, 'role composing other role applied successfully'); -} 'testing role through application through other role lived'; + is(eval { MyExtendedConsumer->new->foo }, 23, 'role composing other role applied successfully'); +};; do { package MyRoleProxy; @@ -114,8 +116,9 @@ do { ); }; -lives_ok { +TODO: { + local $TODO = "role-role application for parameterized roles doesn't work yet"; ok(MyProxyConsumer->can('baz'), 'proxied role got applied successfully'); ok(MyProxyConsumer->can('qux'), 'other role besides proxied one got applied successfully'); -} 'testing proxied roles lived'; +};