Mocking in Elixir
Sometimes, for whatever reason, we need some module’s function to behave differently when running in different environments.
For example, we don’t always need tests making real requests to external services in order to be sure that functions that consume or produce data…