IK
use YourApp.DataCase
Size: a a a
IK
use YourApp.DataCase
IK
T
IK
IK
T
IK
T
The default test helper file, test/test_helper.exs, creates and migrates our test database for us. It also starts a transaction for each test to run in. This will "clean" the database by rolling back the transaction as each test completes.
T
IK
T
IK
T
IK
IK
IK
setup tags do
:ok = Sandbox.checkout(Users.Repo)
unless tags[:async] do
Sandbox.mode(Repo, {:shared, self()})
end
:ok
end
T
IK
T