Rails testing – how to pass params with foreign keys
I’m trying to write a test for a controller. The “create” action expects form data and rejects as “unprocessable entity” if the form data doesn’t validate:
I’m trying to write a test for a controller. The “create” action expects form data and rejects as “unprocessable entity” if the form data doesn’t validate: