Sending JSON Post Data in an Integration Test

Posted by: on Feb 12, 2013 in Blog | Tags: , , | No Comments

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

Unit Testing Cocoa with MacRuby

Posted by: on Sep 29, 2011 in Blog | Tags: , , , , , , | No Comments

I spend most of my development time split between Rails and iOS. Each offers a rich API that makes building projects much more productive and enjoyable. There is one place, however, that Ruby clobbers Objective-C: testing.

Read More