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

Replies are listed 'Best First'.
Re^2: Failing test in the Dancer application
by Anonymous Monk on Apr 23, 2012 at 00:15 UTC

    To clarify, the LOL was really directed at the incredulity of always tripping on basic bugs every time I look at popular frameworks (Dancer, Mojolicious ) ...

Re^2: Failing test in the Dancer application
by choroba (Cardinal) on Apr 23, 2012 at 08:08 UTC
    Thanks for the solution, understanding and insight. Switching the two lines solved the problem.