Testing callbacks in Elixir
Elixir’s variable scoping means you can’t test callbacks like you might in other languages. Message passing to the rescue!
http://thepugautomatic.com/2015/09/testing-callbacks-in-elixir/
Read next Charging for stuff with Phoenix & Stripe