Moose::Meta::Role::create should honor "roles"
authorChris Weyl <cweyl@alumni.drew.edu>
Fri, 22 Apr 2011 03:12:19 +0000 (20:12 -0700)
committerJesse Luehrs <doy@tozt.net>
Fri, 22 Apr 2011 20:59:33 +0000 (15:59 -0500)
commit2b76058a68bf25c4f2c7f62174ef5dc4d1825c2c
treea6a83143443a3cb558b37247289b35e5b2f75d27
parentb6ae23e86df645234156edff858a5c30f12c63b0
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