use Sub::Exporter;
use Carp 'confess';
+use Scalar::Util;
do {
my $CALLER;
excludes => sub {
return sub { }
},
+ blessed => sub {
+ return \&Scalar::Util::blessed;
+ },
+ confess => sub {
+ return \&Carp::confess;
+ },
);
my $exporter = Sub::Exporter::build_exporter({
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 7;
+use Test::More tests => 10;
use Test::Exception;
lives_ok {
no Mouse::Role;
};
+throws_ok {
+ package Role;
+ use Mouse::Role;
+
+ confess "Mouse::Role exports confess";
+
+} qr/^Mouse::Role exports confess/;
+
+lives_ok {
+ package Role;
+ use Mouse::Role;
+
+ my $obj = bless {} => "Impromptu::Class";
+ ::is(blessed($obj), "Impromptu::Class");
+};
+