Injexor

Injexor provides an easy way to replace modules based on behaviours for mocking during tests or stubbing in another module based on config for different environments.

See the docs for full instructions: https://hexdocs.pm/injexor

Installation

The package can be installed by adding injexor to your list of dependencies in mix.exs:

def deps do
  [
    {:injexor, "~> 1.0.0"}
  ]
end

Example test configuration: