use strict;
use warnings;
-our $VERSION = '0.12';
+our $VERSION = '0.13';
use Scalar::Util 'blessed', 'reftype';
use Carp 'confess';
# override a specific class
$meta = $class->meta();
(blessed($meta) && $meta->isa('Moose::Meta::Class'))
- || confess "Whoops, not møøsey enough";
+ || confess "You already have a &meta function, but it does not return a Moose::Meta::Class";
}
else {
# NOTE:
},
blessed => sub {
return \&Scalar::Util::blessed;
+ },
+ default => sub {
+ return subname 'Moose::default' => sub (&) {
+ my $block = shift;
+ return ('default' => $block);
+ };
}
);
use metaclass 'Bar::Meta';
eval 'use Moose;';
::ok($@, '... could not load moose without correct metaclass');
- ::like($@, qr/^Whoops\, not møøsey enough/, '... got the right error too');
+ ::like($@,
+ qr/^You already have a \&meta function\, but it does not return a Moose\:\:Meta\:\:Class/,
+ '... got the right error too');
}