Don't forget `as: :json` when testing JSON API
When you write tests for your JSON API with request spec,  typical code is like:    describe 'POST /r...
Tags: rails, ruby, rspec