I like the ability to test with cookies using Plack::Test alone, but I don't like having to purse cookie headers in order to accomplish it.

Plack::Request[1] has the "cookies" attribute which does that. If we could use that code (not copy-pasted though) to parse the headers and have it, we could remove Test::TCP and LWP::UserAgent::PSGI from the test suite.

[1] https://metacpan.org/pod/Plack::Request


On Wed, Aug 6, 2014 at 11:17 AM, Stefan Hornburg (Racke) <racke@linuxia.de> wrote:
Today, my coworker fixed a problem with Dancer2::Session::DBIC and we needed a test
that relies on maintaining the session.

I looked for other session tests in Dancer2 core and other session engines, but
they are using Test::TCP.

My coworker found out that this can be tested with Plack::Test as well:

https://github.com/interchange/Dancer2-Session-DBIC/blob/master/t/schema.t

So no need to use a different test module for sessions :-).

Regards
        Racke

--
Perl and Dancer Development

Visit our Perl::Dancer conference 2014:

http://act.perl.dance/
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users