vendredi 20 juillet 2018

Mismatching route for rspec testing post on a singular resource

I get the error no routes matches even tho in rake routes I have:

... POST /todo/:todo/todo_comments(.:format)

and in my rspec I have

post :todo_comments, params: { todo_id: 1 }

Aucun commentaire:

Enregistrer un commentaire