pboyd / MooseX-Test-Role

Test functions for Moose roles
2 stars 5 forks source link

Clarify that the package of a role needs to be known to Perl already.… #3

Closed simbabque closed 9 years ago

simbabque commented 9 years ago

The documentation didn't say you need to load the role package first before you can use it with MooseX::Test::Role, and it took me a while to understand that from the error message of the string not being a role, especially since the SYNOPSIS also doesn't do that.

pboyd commented 9 years ago

I think this behavior is actually a bug. I'm going to consider it one at least. I just released version 0.07, which no longer requires that the role be loaded before being used.