Created
October 17, 2016 21:27
-
-
Save lasseebert/f6b52c0b7de17df0de8a625a64dca441 to your computer and use it in GitHub Desktop.
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 "invalid email gives a 400 response" do | |
| conn = | |
| build_conn | |
| |> post("/users", email: "Alice and Bob") | |
| body = conn |> response(400) |> Poison.decode! | |
| assert body["message"] == "email is invalid" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment