[Catalyst] Setting flash for tests

Robert Rothenberg robrwo at gmail.com
Fri Feb 17 15:23:11 GMT 2012

The Login controller, on a successful login, will redirect to the location
in $c->{flash}->{next}, if it is set. (Basically, if the user visits a page
that requires a login, he is redirected to the login page, and then is
redirected back to the original page.)

As far as I can tell, it works alright.

I am unsure how to test this using Catalyst::Test, though.

How can I set the "next" variable so as to test redirection?


More information about the Catalyst mailing list