update method/attribute parsing
[gitmo/MooseX-AutoDoc.git] / t / 202-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;
a3e8bacb 11my $spec = $autodoc->_package_info("AutoDocTest::Role::Role3");
3890b670 12
13my $target = {
14 name => 'AutoDocTest::Role::Role3',
15 roles => [
16 {name => 'AutoDocTest::Role::Role1',},
17 {name => 'AutoDocTest::Role::Role2',}
18 ],
19 methods => [{ name => 'role_3'}],
20 attributes => [
21 {
22 name => 'role_3_attr',
23 info => {},
24 description => 'Optional read-write value'
25 },
26 ],
27 };
1c61aa9f 28
29is_deeply($spec, $target);