How we deal with behaviours and boilerplate
We at BetterDoc are big fans of mox.
In this post we are going to explore how we concretely use behaviours for mocking, the pattern we follow to access and call their implementations, and how we used metaprogramming to reduce boilerplate to an absolute minimum.