Question about Ecto, Multi, and transactions. I'm refactoring some legacy code, and there was a multi-chain that invoked a function that calls a regular Repo function, via the Multi.run function. The resultant multi is executed using a Repo.transaction. The question is, does the code in the function called by Multi.run execute within the context of the transaction, and can it be subject to a rollback should the transaction fail?
question: i've wanted to add a mix task that runs ExUnit tests, but inverts assert and refute. Basically I want it so, when this mix task is run, assert fails if true, and refute fails if false. But I'm not sure how to start this. In ruby I've monkeypatched things like this, but Elixir obviously doesn't have monkey patching. Short of running something like sed to convert all assert to refute and vice-versa, I'm stumped