update method/attribute parsing
[gitmo/MooseX-AutoDoc.git] / t / 200-role.t
index 98701a0..882a701 100644 (file)
@@ -8,7 +8,7 @@ use lib "$Bin/lib";
 use Test::More tests => 1;
 
 my $autodoc = MooseX::AutoDoc->new;
-my $spec = $autodoc->_role_info("AutoDocTest::Role::Role1");
+my $spec = $autodoc->_package_info("AutoDocTest::Role::Role1");
 
 my $target = {
               name => 'AutoDocTest::Role::Role1',
@@ -22,4 +22,5 @@ my $target = {
                              },
                             ],
              };
-is_deeply($target, $spec);
+
+is_deeply($spec, $target);