Commit | Line | Data |
3890b670 |
1 | #!/usr/bin/perl -w |
2 | |
3 | use strict; |
4 | use warnings; |
5 | use MooseX::AutoDoc; |
6 | use FindBin '$Bin'; |
7 | use lib "$Bin/lib"; |
8 | use Test::More tests => 1; |
9 | |
10 | my $autodoc = MooseX::AutoDoc->new; |
a3e8bacb |
11 | my $spec = $autodoc->_package_info("AutoDocTest::Role::Role2"); |
3890b670 |
12 | |
13 | my $target = { |
14 | name => 'AutoDocTest::Role::Role2', |
15 | roles => [], |
16 | methods => [{ name => 'role_2'}], |
17 | attributes => [ |
18 | { |
19 | name => 'role_2_attr', |
20 | info => {}, |
21 | description => 'Optional read-write value' |
22 | }, |
23 | ], |
24 | }; |
1c61aa9f |
25 | |
26 | is_deeply($spec, $target); |