Moose::Meta::Role::create should honor "roles"
authorChris Weyl <cweyl@alumni.drew.edu>
Fri, 22 Apr 2011 03:12:19 +0000 (20:12 -0700)
committerChris Weyl <cweyl@alumni.drew.edu>
Fri, 22 Apr 2011 03:12:19 +0000 (20:12 -0700)
commit0c3696e9f0a51896a1e57d8c6082ec4cd19851cf
treea6a83143443a3cb558b37247289b35e5b2f75d27
parentef5454ec6face171dc729f36279d252e7bd96ab7
Moose::Meta::Role::create should honor "roles"

Moose::Meta::Role's docs claim create() is "identical" to the create() in
Moose::Meta::Class, yet it currently does not honor "roles" if passed to it.

This commit fixes that by having  Moose::Meta::Role::create() honor a roles
named parameter, and adds tests to validate/ensure that behaviour.
lib/Moose/Meta/Role.pm
t/roles/create_role.t