Sample repo to demonstrate the issue outlined here: beam-community/ex_machina#373
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
Bare bones phoenix app with the following tables:
chat_rooms
- chat_rooms.exchat_memberships
- chat_memberships.exusers
- users.ex
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