Sample repo to demonstrate the issue outlined here: beam-community/ex_machina#373

Setup and run test:

  • git clone git@github.com:josephan/ex_machina_sample.git
  • cd ex_machine_sample
  • mix deps.get
  • mix test test/ex_machina_sample_web/sample_test.exs

Project Info:

Bare bones phoenix app with the following tables:

Test File: https://github.com/josephan/ex_machina_sample/blob/master/test/ex_machina_sample_web/sample_test.exs

Factory File: https://github.com/josephan/ex_machina_sample/blob/master/test/support/factory.ex