Created
July 15, 2018 13:34
-
-
Save cybrox/d22c7443e25a39dbe154af746a3ab8d6 to your computer and use it in GitHub Desktop.
testing-protected-phoenix-controllers-4.ex
This file contains hidden or 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
test "accessing a protected route" do | |
user = insert(:user, [username: "Sven"]) | |
conn = conn |> get(user_path(conn, :show, "self") <> with_user(user)) | |
# assert results | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment