-
-
Save ngw/42984797e31fe3fc7e365fe756295a9d to your computer and use it in GitHub Desktop.
This file contains 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 "POST wrong attributs to /macaw/services", %{conn: conn} do | |
user = Owl.UserFactory.insert(:user) | |
conn |> Guardian.Plug.sign_in(user, :token) | |
conn = post conn, "/macaw/services", | |
[ service: [name: "Example service", status: "1", | |
legacy_notifications: "false", notification_endpoint: "http://example.org/notify" ]] | |
assert html_response(conn, 200) =~ "can't be blank" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment