[Catalyst] Re: Catalyst::Controller bug when parsing attributes
(with patch)
Seth Daniel
catalyst at sethdaniel.org
Fri Feb 4 19:01:11 GMT 2011
On Thu, Feb 03, 2011 at 09:15:03AM -0800, Seth Daniel wrote:
> Hi,
>
> I believe I've discovered a bug in Catalyst::Controller. I triggered it
> while using Catalyst::Controller::ActionRole so my examples below will
> refer to that module.
[...snip...]
> I can probably provide a program that demonstrates this, but I've found
> that writing a 'simple' Catalyst application requires a lot of setup. :o/
http://doubleplusgood.org/ccbug.tar
I whittled down the Catalyst::Controller::ActionRole tests to as few
files as I could.
Unpack the tar file and cd to the 't' dir.
Run 'prove execution-via-config.t'. It should fail with the bug I
reported.
You can get the test to pass if you change
t/lib/TestApp/Controller/ExecutionViaConfig.pm to apply the '+Moo' role
like so:
__PACKAGE__->config(
action => {
three => { Does => '+Moo' }
}
);
--
seth /\ sethdaniel.org
More information about the Catalyst
mailing list