What is the best way to check if a custom hook implementation (performing some non-blocking task) was invoked if I'm writing a functional test for the application?
Right now, I use *Mojo::IOLoop->timer* to arbitrarily wait for some time before doing the assertion (looks like this approach is not very good <http://martinfowler.com/articles/nonDeterminism.html>). I have a sample Mojolicious::Lite app & the corresponding test file in this Gist <https://gist.github.com/amarnus/07053fa21c617aeba5ea> to demonstrate this. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
