Why is JBuilder not returning a response body in JSON when testing RSPEC

For anyone that is having the same issue. I have figured it out.

You must call render_views within the controller tests you are doing. If you do that, you should then see a response.body with your JSON contained 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)