Sending JSON Post Data in an Integration Test

Last night I ran into a vexing problem. I had an API endpoint in a Rails app I developed for a customer that accepts request parameters in both the classic application/x-www-form-urlencoded content type as well as application/json. JSON is a more compact format and is easier to scan when reading client logs, so it is now my preferred format for request POST data. Read More