[Dancer-users] Best way to test using Test::WWW::Mechanize?
Michael Alan Dorman
mdorman at ironicdesign.com
Tue Feb 22 18:01:10 CET 2011
Marco Fontani <mfontani at cpan.org> writes:
> the do() you are using gives the PSGI tester the code reference it
> needs (your app) to run tests against.
Hi, Marco, thanks for your response.
I do actually understand what PSGI wants, and I'm even in the failing
case, I am providing it with a codref, otherwise I wouldn't be getting a
404 page generated by Dancer when I request '/'.
My question is why is it that dance() is giving back an incorrectly
initialized application object in my failing test script, when it gives
back a correct one when it is insulated by a do "" or eval ""?
Mike.
More information about the Dancer-users
mailing list