Skip to content

Instantly share code, notes, and snippets.

@tokafish
Last active February 26, 2016 18:21
Show Gist options
  • Save tokafish/9a018fd811ed9173d503 to your computer and use it in GitHub Desktop.
Save tokafish/9a018fd811ed9173d503 to your computer and use it in GitHub Desktop.
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