Dear Monks,
If I build a
Dancer application by
dancer -a MyApp
there are two tests in MyApp/t/. Running
prove -I lib
in MyApp directory makes the both tests pass.
But, if I edit MyApp/lib/MyApp.pm, changing the second line from
use Dancer ':syntax';
to
use Dancer;
the second test fails:
t/002_index_route.t .. 1/2
# Failed test 'response status is 200 for /'
# at t/002_index_route.t line 10.
# got: '500'
# expected: '200'
# Looks like you failed 1 test of 2.
The application still runs ok in a browser, though.
Can someone explain what exactly is ':syntax' for? Is the failing test the intended behaviour or a bug?