#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 15;
+use Test::More tests => 18;
use Test::Exception;
+use lib 't/lib';
+use Test::Mouse;
+
do {
package Class;
use Mouse;
ok(!Class->can('x'), "No accessor is injected if 'is' has no value");
can_ok('Class', 'y', 'z');
+has_attribute_ok 'Class', 'x';
+has_attribute_ok 'Class', 'y';
+has_attribute_ok 'Class', 'z';
+
my $object = Class->new;
ok(!$object->can('x'), "No accessor is injected if 'is' has no value");
);
} qr/You must pass an ARRAY ref of roles/;
-ok !Made::Of::Fail->isa('UNIVERSAL'), "did not create Made::Of::Fail";
+ok !Mouse::Util::is_class_loaded('Made::Of::Fail'), "did not create Made::Of::Fail";
dies_ok {
Mouse::Meta::Class->create(