Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. defmodule Core.CompanyControllerTest do
  2. use Core.ConnCase
  3. require Logger
  4.  
  5. setup do
  6. conn = conn() |> put_req_header("accept", "application/json")
  7. #always 404s
  8. authed_conn = get conn, auth_path(conn, :login), username: "test1@test.com", password: "12345"
  9. {:ok, conn: conn}
  10. end
  11.  
  12. test "lists all entries on index", %{conn: conn} do
  13. conn = get conn, company_path(conn, :index)
  14. assert json_response(conn, 404)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement