I'm trying to write an integration test for my API. The request being made is:
delete sessions_path, session: { article_id: @article.id}
The request should however also include http headers:
Authorization: "mytoken"
My_email: @user.email
How to include these http headers?
Aucun commentaire:
Enregistrer un commentaire