ElixirMock is new library for creating inspectable mocks based on real elixir modules for testing.
ElixirMock’s mocks have the same api as the modules they are created from and are:
- Easy to create from already-defined modules
- Do not modify or replace the modules they are based on
- Are independent of each other
- Allow you to inspect calls made to them, and much more!