<div dir="ltr"><a href="https://metacpan.org/pod/Dancer2::Plugin::Passphrase">https://metacpan.org/pod/Dancer2::Plugin::Passphrase</a> Is this it?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 23, 2014 at 1:00 PM, Sawyer X <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is because you're calling plugin_setting() in the wrong context.<div><br></div><div>Where is the code? :)</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 23, 2014 at 11:00 AM, Henk van Oers <span dir="ltr"><<a href="mailto:hvo.pm@xs4all.nl" target="_blank">hvo.pm@xs4all.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In Dancer2-Plugin-Passphrase I have this test:<br>
<br>
--- 003_default_settings.t ---<br>
use Test::More tests => 3;<br>
<br>
use strict;<br>
use warnings;<br>
<br>
use Dancer2;<br>
use Dancer2::Plugin::Passphrase;<br>
<br>
my $secret = "Super Secret Squirrel";<br>
<br>
my $rfc2307 = passphrase($secret)->generate-<u></u>>rfc2307;<br>
<br>
like($rfc2307, qr/^{CRYPT}\$2a\$04\$/,      'RFC compliant hash generated');<br>
ok(passphrase($secret)-><u></u>matches($rfc2307),  'Match plaintext to hash');<br>
ok(!passphrase('WRONG')-><u></u>matches($rfc2307), 'Incorrect passwords should be rejected');<br>
<br>
--- ---<br>
<br>
CPANtesters use the latest D2,<br>
which contains a "croak 'No DSL object found'"<br>
<br>
See:<br>
<a href="http://www.cpantesters.org/cpan/report/d4473e02-7246-11e4-ac74-95bbe0bfc7aa" target="_blank">http://www.cpantesters.org/<u></u>cpan/report/d4473e02-7246-<u></u>11e4-ac74-95bbe0bfc7aa</a><br>
<br>
How do I add a DSL to this test?<br>
<br>
Thanks,<br>
Henk<br>
______________________________<u></u>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/<u></u>mailman/listinfo/dancer-users</a><br>
</blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div>