added POD to AutoDoc, changed some things, updated tests fixed a view bug
[gitmo/MooseX-AutoDoc.git] / t / 200-role.t
CommitLineData
3890b670 1#!/usr/bin/perl -w
2
3use strict;
4use warnings;
5use MooseX::AutoDoc;
6use FindBin '$Bin';
7use lib "$Bin/lib";
8use Test::More tests => 1;
9
10my $autodoc = MooseX::AutoDoc->new;
ec75fdb0 11my $spec = $autodoc->_role_info("AutoDocTest::Role::Role1");
3890b670 12
13my $target = {
14 name => 'AutoDocTest::Role::Role1',
15 roles => [],
16 methods => [{ name => 'role_1'}],
17 attributes => [
18 {
19 name => 'role_1_attr',
20 info => {},
21 description => 'Optional read-write value'
22 },
23 ],
24 };
25is_deeply($target, $spec);