Last active
February 26, 2016 18:21
-
-
Save tokafish/9a018fd811ed9173d503 to your computer and use it in GitHub Desktop.
This file contains 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
defmodule ConcurrentAcceptance.AcceptanceCase do | |
use ExUnit.CaseTemplate | |
using do | |
quote do | |
use Hound.Helpers | |
import Ecto.Model | |
import Ecto.Query, only: [from: 2] | |
import ConcurrentAcceptance.Router.Helpers | |
alias ConcurrentAcceptance.Repo | |
@endpoint ConcurrentAcceptance.Endpoint | |
end | |
end | |
setup tags do | |
:ok = Ecto.Adapters.SQL.Sandbox.checkout(ConcurrentAcceptance.Repo) | |
Hound.start_session() | |
path = Phoenix.Ecto.SQL.Sandbox.path_for(ConcurrentAcceptance.Repo, self()) | |
Hound.Helpers.Navigation.navigate_to(path) | |
:ok | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment