double v0.6.4 API Reference
Modules
Double builds on-the-fly injectable dependencies for your tests. It does NOT override behavior of existing modules or functions. Double uses Elixir’s built-in language features such as pattern matching and message passing to give you everything you would normally need a complex mocking tool for
This is a simple GenServer that does a Code.eval_string while ignoring module conflict warnings. The need for a GenServer is to prevent two evaluations from executing simultaneously which has been observed to output the module conflict warnings due to the global nature of the setting