choroba has asked for the wisdom of the Perl Monks concerning the following question:
there are two tests in MyApp/t/. Runningdancer -a MyApp
in MyApp directory makes the both tests pass.prove -I lib
But, if I edit MyApp/lib/MyApp.pm, changing the second line from
touse Dancer ':syntax';
the second test fails:use Dancer;
The application still runs ok in a browser, though.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.
Can someone explain what exactly is ':syntax' for? Is the failing test the intended behaviour or a bug?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Failing test in the Dancer application
by kcott (Archbishop) on Apr 22, 2012 at 23:57 UTC | |
|
Re: Failing test in the Dancer application
by Anonymous Monk on Apr 23, 2012 at 00:10 UTC | |
by Anonymous Monk on Apr 23, 2012 at 00:15 UTC | |
by choroba (Cardinal) on Apr 23, 2012 at 08:08 UTC |