livebook/test/support/conn_case.ex
Jonatan Kłosko dae6d5c9c3
Rename project (#68)
* Rename references

* Update file and directory names

* Fix homepage tests
2021-03-03 22:56:28 +01:00

21 lines
449 B
Elixir

defmodule LivebookWeb.ConnCase do
use ExUnit.CaseTemplate
using do
quote do
# Import conveniences for testing with connections
import Plug.Conn
import Phoenix.ConnTest
import LivebookWeb.ConnCase
alias LivebookWeb.Router.Helpers, as: Routes
# The default endpoint for testing
@endpoint LivebookWeb.Endpoint
end
end
setup _tags do
{:ok, conn: Phoenix.ConnTest.build_conn()}
end
end