dashbitco / mox

Mocks and explicit contracts in Elixir
1.35k stars 77 forks source link

Use Code.ensure_compiled? vs Code.ensure_loaded? to ensure the module is available #17

Closed hubertlepicki closed 7 years ago

hubertlepicki commented 7 years ago

A user of the library (yay) found a bug here: https://elixirforum.com/t/compilation-order-during-tests/9459

@ericmj quickly found a solution (<3) which is incorporated to this PR.

josevalim commented 7 years ago

:heart: :green_heart: :blue_heart: :yellow_heart: :purple_heart: