<div dir="ltr"><div>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.<br><br></div><div>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.<br>
<br>[1] <a href="https://metacpan.org/pod/Plack::Request">https://metacpan.org/pod/Plack::Request</a><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 6, 2014 at 11:17 AM, Stefan Hornburg (Racke) <span dir="ltr"><<a href="mailto:racke@linuxia.de" target="_blank">racke@linuxia.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Today, my coworker fixed a problem with Dancer2::Session::DBIC and we needed a test<br>
that relies on maintaining the session.<br>
<br>
I looked for other session tests in Dancer2 core and other session engines, but<br>
they are using Test::TCP.<br>
<br>
My coworker found out that this can be tested with Plack::Test as well:<br>
<br>
<a href="https://github.com/interchange/Dancer2-Session-DBIC/blob/master/t/schema.t" target="_blank">https://github.com/interchange/Dancer2-Session-DBIC/blob/master/t/schema.t</a><br>
<br>
So no need to use a different test module for sessions :-).<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888"> Racke<br>
<br>
--<br>
Perl and Dancer Development<br>
<br>
Visit our Perl::Dancer conference 2014:<br>
<br>
<a href="http://act.perl.dance/" target="_blank">http://act.perl.dance/</a><br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</font></span></blockquote></div><br></div>