#!/usr/bin/env perl
-use lib 'lib', 't/role-basic/lib';
+use lib 'lib', 't/role-basic/lib', 't/lib';
use MyTests;
# multiple roles with the same role
use Role::Tiny 'with';
with 'A::NonExistent::Role';
END
+}
+
+{
my $error = $@ || '';
like $error, qr{^Can't locate A/NonExistent/Role.pm},
'If ->can always returns true, we should still not think we loaded the role'
::ok(Role::Tiny::does_role($object, "Role1"), 'Role1 consumed');
::ok(Role::Tiny::does_role($object, 'Role2'), 'Role2 consumed');
}
+
+can_ok(Role::Tiny->create_class_with_roles(qw(Bar Baz))->new, qw(bar baz));
done_testing;