Skip to content

Commit

Permalink
Skip this test if Role::Tiny is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Jul 3, 2022
1 parent 5d1ab57 commit 5bb9d77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/Mite-Role-Tiny/basic.t
Expand Up @@ -4,7 +4,8 @@ use lib 't/lib';

use Test::Mite;

tests "basic test of roles" => sub {
eval { require Role::Tiny; 1 }
and tests "basic test of roles" => sub {
mite_load <<'CODE';
package MyTest;
use Mite::Shim;
Expand All @@ -24,4 +25,6 @@ CODE
is $object->quuux, 'QUUUX';
};

ok 1;

done_testing;

0 comments on commit 5bb9d77

Please sign in to comment.