Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Sep 24, 2015
1 parent ffefecf commit 06b7804
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/moose.t
Expand Up @@ -8,14 +8,14 @@ use Module::Runtime ();
sub uses_moose_ok {
my ($mod) = @_;
SKIP: {
my $meta = $mod->can('meta') && $mod->meta;
my $metaclass = $meta && ref $meta;
my $meta = $mod->can('meta') && $mod->meta;
my $metaclass = $meta && ref $meta;

if ($metaclass && $metaclass->can('is_immutable')) {
if ( $metaclass && $metaclass->can('is_immutable') ) {
::ok( $meta->is_immutable, "$mod is immutable" );
}
elsif ($metaclass && $metaclass->isa('Moose::Meta::Role')) {
::pass( "$mod is a role" );
elsif ( $metaclass && $metaclass->isa('Moose::Meta::Role') ) {
::pass("$mod is a role");
}
else {
::skip( "$mod is not a Moose class or role", 1 );
Expand Down

0 comments on commit 06b7804

Please sign in to comment.