use strict;
use warnings;
-use Test::More tests => 8;
+use Test::More tests => 6;
use Test::Exception;
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;
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;
);
};
-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';
+};