Moose compat: handles are not canonicalized in the meta attribute's storage, instead...
[gitmo/Mouse.git] / t / 020-load-class.t
CommitLineData
c3398f5b 1#!/usr/bin/env perl
2use strict;
3use warnings;
4use Test::More tests => 5;
5use Test::Exception;
6
7require Mouse;
8use lib 't/lib';
9
10ok(Mouse::load_class('Anti::Mouse'));
11can_ok('Anti::Mouse' => 'antimouse');
12
13do {
14 package Class;
15};
16
17ok(Mouse::load_class('Class'), "this should not die!");
18
19TODO: {
20 local $TODO = "can't have the previous test and this test pass.. yet";
21 throws_ok {
22 Mouse::load_class('FakeClassOhNo');
23 } qr/Can't locate /;
24};
25
26throws_ok {
27 Mouse::load_class('Anti::MouseError');
28} qr/Missing right curly/;
29