Created
June 14, 2016 18:57
-
-
Save sergio1990/153b876a4b1cd0806f4a1a8a980aaac9 to your computer and use it in GitHub Desktop.
Setup ExUnit Ecto sandbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setup do | |
| :ok = Ecto.Adapters.SQL.Sandbox.checkout(RemarkApi.Repo) | |
| Ecto.Adapters.SQL.Sandbox.mode(RemarkApi.Repo, {:shared, self()}) | |
| :ok | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment