in reply to Failing test in the Dancer application
Can someone explain what exactly is ':syntax' for? Is the failing test the intended behaviour or a bug?
Lol ok :) Compare https://metacpan.org/module/Dancer#syntax to https://metacpan.org/module/Dancer#script
script loads config while syntax only exports get/true/.... all the dancer functions
In t/002_index_route.t it says
# the order is important use MyDancerApp; use Dancer::Test;
Well, if you remove ':syntax' from your dancer app.pm, then you need to switch the order, in t/002_index_route.t, and the test will pass
I think there are a number of seriousbasic bugs in there but I'm not sure what they are or which is most important
Be careful, the module loading order in the example above is very important. Make sure to use "Dancer::Test" after importing the application package otherwise your appdir will be automatically set to "lib" and your test script won't be able to find views, conffiles and other application content.
This is dumb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Failing test in the Dancer application
by Anonymous Monk on Apr 23, 2012 at 00:15 UTC | |
|
Re^2: Failing test in the Dancer application
by choroba (Cardinal) on Apr 23, 2012 at 08:08 UTC |