Test Your respond_to Block

Getting RESTful and wondering how to test your respond_to block in your controller to make sure its returning the right format? Drop these into your test_helper.rb.

Then in your functional tests, use them like this:

Yay!