How to RSpec a Rails JSON API responses with Jbuilder

How to RSpec a Rails JSON API responses with Jbuilder

ruby on rails, tests, rspec, jbuilder

How to RSpec a Jbuilder response from a Rails JSON API

Want to write a Rails API controller test and make sure it includes exactly what your Jbuilder serializer returns? Set `render_views`. Learn why in this post.

Stefanni Brasil