Testing Transactions in Elixir

from blog Simpler Machines, | ↗ original
My favorite thing about this test is that it's not a test for whether these operations are happening inside of a transition. It might actually be better to do this with the first request as a subquery inside the insert, and this test will happily accept that solution.