Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule Core.CompanyControllerTest do
- use Core.ConnCase
- require Logger
- setup do
- conn = conn() |> put_req_header("accept", "application/json")
- #always 404s
- authed_conn = get conn, auth_path(conn, :login), username: "test1@test.com", password: "12345"
- {:ok, conn: conn}
- end
- test "lists all entries on index", %{conn: conn} do
- conn = get conn, company_path(conn, :index)
- assert json_response(conn, 404)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement