Open KES777 opened 6 years ago
https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Lite.pm#L25
Should we ensure that default application come from 'main' package?
In case about when we do app->start
we explicitly start application from main package;
but when we use some module which use Mojolicous::Lite
it, occasionally, setup it as default application fro tests...
This should be documented that the default application for tests is first declared application
The place where I
use Mojolicious::Lite
is significant:Here tests did not work: https://gist.github.com/KES777/6ca7b3f43e18f1935ef7f7a6d5ab02f7
and only with this change https://gist.github.com/KES777/6ca7b3f43e18f1935ef7f7a6d5ab02f7/revisions it is worked